Skip to content

Commit

Permalink
テンプレートで「ゲーム選択」をしないと「反映」が押せないようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
pasta04 committed Sep 16, 2024
1 parent c59a57b commit 51b4ca3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/components/organisms/TweetForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,13 @@ const TweetForm: React.FC<PropsType> = (props: PropsType) => {
disabled={true}
/>
<div style={{ display: 'flex', flexDirection: 'row-reverse' }}>
<Button variant={'contained'} size={'small'} color={'primary'} onClick={handleTemplateApply(template.contents)} disabled={Number.isNaN(templateGameIndex)}>
<Button
variant={'contained'}
size={'small'}
color={'primary'}
onClick={handleTemplateApply(template.contents)}
disabled={templateGameIndex === '' || Number.isNaN(templateGameIndex)}
>
反映
</Button>
</div>
Expand Down

0 comments on commit 51b4ca3

Please sign in to comment.