Front: Score Modal

This commit is contained in:
Arthur Jamet
2023-11-30 14:24:48 +01:00
parent b417076ee6
commit 72f17c018e
6 changed files with 116 additions and 190 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ import React from 'react';
import GlassmorphismCC from './Glassmorphism';
type PopupCCProps = {
title: string;
title?: string;
description?: string;
children?: ReactNode;
isVisible: boolean;
@@ -34,7 +34,7 @@ const PopupCC = ({ title, description, children, isVisible, setIsVisible }: Popu
}}
space={4}
>
<Heading size="md" mb={2} alignItems={'flex-end'}>
{(setIsVisible || title) && <Heading size="md" mb={2} alignItems={'flex-end'}>
<Row style={{ flex: 1, width: '100%', alignItems: 'flex-end' }}>
<Text style={{ flex: 1, width: '100%' }}>{title}</Text>
{setIsVisible !== undefined && (
@@ -45,7 +45,7 @@ const PopupCC = ({ title, description, children, isVisible, setIsVisible }: Popu
/>
)}
</Row>
</Heading>
</Heading>}
{description !== undefined && <Text>{description}</Text>}
{children !== undefined && children}
</Column>
+1 -2
View File
@@ -3,7 +3,7 @@ import useColorScheme from '../../hooks/colorScheme';
import { useQuery } from '../../Queries';
import API from '../../API';
import { LinearGradient } from 'expo-linear-gradient';
import { Cup, Discover, Music, SearchNormal1, Setting2, User } from 'iconsax-react-native';
import { Discover, Music, SearchNormal1, Setting2, User } from 'iconsax-react-native';
import { LoadingView } from '../Loading';
import ScaffoldDesktopCC from './ScaffoldDesktopCC';
import ScaffoldMobileCC from './ScaffoldMobileCC';
@@ -13,7 +13,6 @@ const menu = [
{ type: 'main', title: 'menuProfile', icon: User, link: 'User' },
{ type: 'main', title: 'menuMusic', icon: Music, link: 'Music' },
{ type: 'main', title: 'menuSearch', icon: SearchNormal1, link: 'Search' },
{ type: 'main', title: 'menuLeaderBoard', icon: Cup, link: 'Score' },
{ type: 'sub', title: 'menuSettings', icon: Setting2, link: 'Settings' },
] as const;