Skip to content

Commit

Permalink
style: add challenge title
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Oct 17, 2022
1 parent a89471c commit 3ba937e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,15 @@ const GameChallengeEdit: FC = () => {
headProps={{ position: 'apart' }}
head={
<>
<Button
leftIcon={<Icon path={mdiKeyboardBackspace} size={1} />}
onClick={() => navigate(`/admin/games/${id}/challenges`)}
>
返回上级
</Button>
<Group position="left">
<Button
leftIcon={<Icon path={mdiKeyboardBackspace} size={1} />}
onClick={() => navigate(`/admin/games/${id}/challenges`)}
>
返回上级
</Button>
<Title># {challenge?.title}</Title>
</Group>
<Group position="right">
<Button
leftIcon={<Icon path={mdiPuzzleEditOutline} size={1} />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
Grid,
Code,
Switch,
Title,
} from '@mantine/core'
import { useClipboard } from '@mantine/hooks'
import { useModals } from '@mantine/modals'
Expand Down Expand Up @@ -176,12 +177,15 @@ const GameChallengeEdit: FC = () => {
headProps={{ position: 'apart' }}
head={
<>
<Button
leftIcon={<Icon path={mdiKeyboardBackspace} size={1} />}
onClick={() => navigate(`/admin/games/${id}/challenges`)}
>
返回上级
</Button>
<Group position="left">
<Button
leftIcon={<Icon path={mdiKeyboardBackspace} size={1} />}
onClick={() => navigate(`/admin/games/${id}/challenges`)}
>
返回上级
</Button>
<Title># {challengeInfo?.title}</Title>
</Group>
<Group position="right">
<Button
disabled={disabled}
Expand Down

0 comments on commit 3ba937e

Please sign in to comment.