feat: Use Mantine Select for Scheduler

This commit is contained in:
blessedcoolant 2023-06-12 19:50:34 +12:00 committed by psychedelicious
parent 5b20766ea3
commit 68a02da990

View File

@ -1,9 +1,8 @@
import { Select } from '@mantine/core';
import { createSelector } from '@reduxjs/toolkit';
import { Scheduler } from 'app/constants';
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
import IAICustomSelect from 'common/components/IAICustomSelect';
import IAISelect from 'common/components/IAISelect';
import { generationSelector } from 'features/parameters/store/generationSelectors';
import { setScheduler } from 'features/parameters/store/generationSlice';
import { uiSelector } from 'features/ui/store/uiSelectors';
@ -52,11 +51,12 @@ const ParamScheduler = () => {
// );
return (
<IAISelect
<Select
label={t('parameters.scheduler')}
value={scheduler}
validValues={allSchedulers}
onChange={handleChange}
searchable
/>
);