Front: Fix some mistakes
This commit is contained in:
@@ -7,7 +7,7 @@ volumes:
|
||||
|
||||
services:
|
||||
back:
|
||||
#platform: linux/amd64
|
||||
platform: linux/amd64
|
||||
build:
|
||||
context: ./back
|
||||
dockerfile: Dockerfile.dev
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user