update
This commit is contained in:
@@ -13,15 +13,31 @@ import { Palette } from "../../styles";
|
||||
import Style, { gutters, size } from "../../styles/Style";
|
||||
import { FONT_FAMILY } from "../../styles/Fonts";
|
||||
import Slider from "../../components/Slider";
|
||||
import { useRoute } from "@react-navigation/core";
|
||||
import { SheetManager } from "react-native-actions-sheet";
|
||||
|
||||
const MusicDetails = () => {
|
||||
const params = useRoute().params;
|
||||
const action = params?.action;
|
||||
const [fav, setFav] = useState(false);
|
||||
|
||||
return (
|
||||
<Page
|
||||
headerType="NAVIGATION"
|
||||
title="Recherche"
|
||||
backgroundImg={background.libraryBG2}
|
||||
title={action === "userProfile" ? "Mon profil" : "Recherche"}
|
||||
backgroundImg={
|
||||
action === "userProfile" ? background.profileBG : background.libraryBG2
|
||||
}
|
||||
{...(action === "userProfile" && {
|
||||
containerStyle: {
|
||||
backgroundColor: "#0000004D",
|
||||
},
|
||||
rightComponent: () => (
|
||||
<Pressable onPress={() => SheetManager.show("DeleteAudio")}>
|
||||
<Image source={icons.trash} />
|
||||
</Pressable>
|
||||
),
|
||||
})}
|
||||
>
|
||||
<ScrollView
|
||||
contentContainerStyle={{
|
||||
|
||||
Reference in New Issue
Block a user