Skip to content

Commit

Permalink
feat: move clear
Browse files Browse the repository at this point in the history
Signed-off-by: hxtree <[email protected]>
  • Loading branch information
hxtree committed Dec 22, 2023
1 parent 2c7f378 commit 4e30b5d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions services/admin-client/src/components/DiceAnalyzer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,6 @@ export const DiceAnalyzer = (props: DiceAnalyzerProps) => {
</Stack>
</Grid>
<div>
<Button
color="secondary"
onClick={() => clear()}
disabled={data.length < 1}
testId={`dice-analyzer-clear`}
ref={(ref: any) => analytics.set(ref, 'Clear')}>
Clear
</Button>
<Button
color="primary"
loading={isLoading}
Expand All @@ -138,6 +130,14 @@ export const DiceAnalyzer = (props: DiceAnalyzerProps) => {
ref={(ref: any) => analytics.set(ref, 'Roll')}>
Roll
</Button>
<Button
color="secondary"
onClick={() => clear()}
disabled={data.length < 1}
testId={`dice-analyzer-clear`}
ref={(ref: any) => analytics.set(ref, 'Clear')}>
Clear
</Button>
</div>
Expand Down

0 comments on commit 4e30b5d

Please sign in to comment.