Skip to content

Commit

Permalink
Refactor max census size buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Mar 14, 2024
1 parent eb5ed4c commit 9006b74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/ProcessCreate/Census/Token.tsx
Expand Up @@ -370,7 +370,8 @@ export const CensusTokens = () => {
)
}

const SliderButtonsValues = [0.01, 0.05, 0.1, 0.25, 0.5, 0.75, 1]
const SliderButtonsValuesDesktop = [0.01, 0.05, 0.1, 0.25, 0.5, 0.75, 1]
const SliderButtonsValues = [0.05, 0.1, 0.25, 0.5, 0.75, 1]

export const MaxCensusSizeSelector = ({ token, strategySize }: { token?: Census3Token; strategySize: number }) => {
const {
Expand Down Expand Up @@ -462,6 +463,9 @@ export const MaxCensusSizeSelector = ({ token, strategySize }: { token?: Census3
setSliderValue(val)
setValue('maxCensusSize', val)
}}
fontSize='sm'
variant={'secondary'}
height={'var(--chakra-sizes-8)'}
>
{v * 100}%
</Button>
Expand Down

0 comments on commit 9006b74

Please sign in to comment.