[WebUI] Fix Threshold and Perlin Noise Styling

This commit is contained in:
blessedcoolant 2022-10-07 06:47:50 +13:00
parent 461e662644
commit 542ee56c77
2 changed files with 14 additions and 12 deletions

View File

@ -1,5 +1,9 @@
import React from 'react'; import React from 'react';
import { RootState, useAppDispatch, useAppSelector } from '../../../../app/store'; import {
RootState,
useAppDispatch,
useAppSelector,
} from '../../../../app/store';
import IAINumberInput from '../../../../common/components/IAINumberInput'; import IAINumberInput from '../../../../common/components/IAINumberInput';
import { setPerlin } from '../../optionsSlice'; import { setPerlin } from '../../optionsSlice';
@ -11,13 +15,13 @@ export default function Perlin() {
return ( return (
<IAINumberInput <IAINumberInput
label='Perlin' label="Perlin Noise"
min={0} min={0}
max={1} max={1}
step={0.05} step={0.05}
onChange={handleChangePerlin} onChange={handleChangePerlin}
value={perlin} value={perlin}
isInteger={false} isInteger={false}
/> />
); );
} }

View File

@ -16,10 +16,8 @@ const SeedOptions = () => {
<Seed /> <Seed />
<ShuffleSeed /> <ShuffleSeed />
</Flex> </Flex>
<Flex gap={2}> <Threshold />
<Threshold /> <Perlin />
<Perlin />
</Flex>
</Flex> </Flex>
); );
}; };