Fix Task: #92
This commit is contained in:
+16
-10
@@ -18,13 +18,15 @@ const CreateSongs = () => {
|
||||
const { userProjects = [] } = useUser();
|
||||
const projects = useMemo(
|
||||
() => (Array.isArray(userProjects) ? userProjects.slice(0, 3) : []),
|
||||
[userProjects],
|
||||
[userProjects]
|
||||
);
|
||||
const fmtDate = (ts) => {
|
||||
try {
|
||||
const d = ts?.toDate ? ts.toDate() : ts ? new Date(ts) : null;
|
||||
if (!d || Number.isNaN(d.getTime())) return "";
|
||||
const dd = `${d.getDate().toString().padStart(2, "0")}/${(d.getMonth() + 1)
|
||||
const dd = `${d.getDate().toString().padStart(2, "0")}/${(
|
||||
d.getMonth() + 1
|
||||
)
|
||||
.toString()
|
||||
.padStart(2, "0")}`;
|
||||
return dd;
|
||||
@@ -67,7 +69,7 @@ const CreateSongs = () => {
|
||||
resizeMode="contain"
|
||||
/>
|
||||
<BlurView
|
||||
intensity={40}
|
||||
intensity={Platform.OS !== "ios" ? 10 : 40}
|
||||
style={{
|
||||
flex: 1,
|
||||
borderRadius: 20,
|
||||
@@ -79,9 +81,9 @@ const CreateSongs = () => {
|
||||
gap: 20,
|
||||
paddingVertical: 20,
|
||||
}}
|
||||
experimentalBlurMethod={
|
||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||
}
|
||||
// experimentalBlurMethod={
|
||||
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||
// }
|
||||
>
|
||||
<Pressable
|
||||
style={{
|
||||
@@ -144,9 +146,9 @@ const CreateSongs = () => {
|
||||
backgroundColor: Palette.glass,
|
||||
overflow: "hidden",
|
||||
}}
|
||||
experimentalBlurMethod={
|
||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||
}
|
||||
// experimentalBlurMethod={
|
||||
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||
// }
|
||||
>
|
||||
<View>
|
||||
<Text
|
||||
@@ -194,7 +196,11 @@ const CreateSongs = () => {
|
||||
))}
|
||||
</View>
|
||||
<GradientButton
|
||||
title={selectedIndex !== null ? "Poursuivre la création" : "Créer un texte"}
|
||||
title={
|
||||
selectedIndex !== null
|
||||
? "Poursuivre la création"
|
||||
: "Créer un texte"
|
||||
}
|
||||
containerStyle={{
|
||||
width: "80%",
|
||||
alignSelf: "center",
|
||||
|
||||
Reference in New Issue
Block a user