Skip to content

Commit

Permalink
feat: Add a 10s option to Animation
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed May 15, 2023
1 parent f236df3 commit 6aac288
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions app/configurator/components/chart-options-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -485,18 +485,15 @@ const ChartFieldAnimation = ({ field }: { field: AnimationField }) => {
}
/>
<Flex sx={{ justifyContent: "flex-start" }}>
<ChartOptionRadioField
label="30s"
field="animation"
path="duration"
value={30}
/>
<ChartOptionRadioField
label="60s"
field="animation"
path="duration"
value={60}
/>
{[10, 30, 60].map((d) => (
<ChartOptionRadioField
key={d}
label={`${d}s`}
field="animation"
path="duration"
value={d}
/>
))}
</Flex>
</Box>
<Box component="fieldset" mt={4}>
Expand Down

0 comments on commit 6aac288

Please sign in to comment.