Front: Fix some mistakes

This commit is contained in:
Arthur Jamet
2023-12-02 08:18:12 +01:00
parent 4d16723e38
commit 454835338f
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ volumes:
services:
back:
#platform: linux/amd64
platform: linux/amd64
build:
context: ./back
dockerfile: Dockerfile.dev
+2 -2
View File
@@ -50,7 +50,7 @@ const ScoreModal = (props: ScoreModalProps) => {
wrong: [props.score.wrong, 'error']
} as const
return <Column space={4} style={{ alignItems: 'center' }}>
return <Column w='xl' space={4} style={{ alignItems: 'center' }}>
<Row space={2} style={{ justifyContent: 'center' }}>
{[1, 2, 3].map((index) => (
<Star1
@@ -80,7 +80,7 @@ const ScoreModal = (props: ScoreModalProps) => {
</Column>
))}
</Row>
<Row style={{ justifyContent: 'space-between' }}>
<Row w="100%" style={{ justifyContent: 'space-between' }}>
<ButtonBase
style={{}}
icon={Play}
+4 -3
View File
@@ -89,7 +89,7 @@ const PlayView = ({ songId, route }: RouteProps<PlayViewProps>) => {
const [paused, setPause] = useState<boolean>(true);
const stopwatch = useStopwatch();
const [time, setTime] = useState(0);
const [endResult, setEndResult] = useState();
const [endResult, setEndResult] = useState<unknown>();
const songHistory = useQuery(API.getSongHistory(songId));
const [partitionRendered, setPartitionRendered] = useState(false); // Used to know when partitionview can render
const [score, setScore] = useState(0); // Between 0 and 100
@@ -336,12 +336,13 @@ const PlayView = ({ songId, route }: RouteProps<PlayViewProps>) => {
<PopupCC
isVisible={endResult != undefined}
>{
(() => endResult ? <ScoreModal {...endResult}/> : <></>)()
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(() => endResult ? <ScoreModal {...endResult as any}/> : <></>)()
}</PopupCC>
<PopupCC
title={translate('selectPlayMode')}
description={translate('selectPlayModeExplaination')}
isVisible={false}
isVisible={type === undefined}
setIsVisible={
navigation.canGoBack()
? (isVisible) => {