update radix-ui dialog select version
This commit is contained in:
@@ -119,6 +119,7 @@ function HDSettingBlock() {
|
||||
title="High Resolution Strategy"
|
||||
input={
|
||||
<Selector
|
||||
width={80}
|
||||
value={setting.hdStrategy as string}
|
||||
options={Object.values(HDStrategy)}
|
||||
onChange={val => onStrategyChange(val as HDStrategy)}
|
||||
|
||||
@@ -15,7 +15,7 @@ const ManualRunInpaintingSettingBlock: React.FC = () => {
|
||||
|
||||
return (
|
||||
<SettingBlock
|
||||
title="Run inpainting manually"
|
||||
title="Manual Inpainting Mode"
|
||||
input={
|
||||
<Switch
|
||||
checked={setting.runInpaintingManually}
|
||||
|
||||
@@ -12,7 +12,6 @@ export enum AIModel {
|
||||
|
||||
function ModelSettingBlock() {
|
||||
const [setting, setSettingState] = useRecoilState(settingState)
|
||||
console.log(setting.model)
|
||||
|
||||
const onModelChange = (value: AIModel) => {
|
||||
setSettingState(old => {
|
||||
@@ -91,6 +90,7 @@ function ModelSettingBlock() {
|
||||
title="Inpainting Model"
|
||||
input={
|
||||
<Selector
|
||||
width={80}
|
||||
value={setting.model as string}
|
||||
options={Object.values(AIModel)}
|
||||
onChange={val => onModelChange(val as AIModel)}
|
||||
|
||||
@@ -5,7 +5,6 @@ import {
|
||||
ChevronUpIcon,
|
||||
} from '@heroicons/react/outline'
|
||||
import * as Select from '@radix-ui/react-select'
|
||||
import { relative } from 'path'
|
||||
|
||||
type SelectorChevronDirection = 'up' | 'down'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user