Skip to content

Commit 82207d6

Browse files
c
1 parent 879cca9 commit 82207d6

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

packages/compass-preferences-model/src/preferences-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ type PreferenceDefinition<K extends keyof AllPreferences> = {
209209
: false
210210
: boolean;
211211

212-
selectableValues?: ReadonlyArray<AllPreferences[K]>;
212+
// selectableValues?: ReadonlyArray<AllPreferences[K]>;
213213
validator: z.Schema<
214214
AllPreferences[K],
215215
z.ZodTypeDef,

packages/compass-settings/src/components/settings/settings-list.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ function SettingsInput({
298298

299299
let input = null;
300300

301-
const { name, type, onChange, value, selectableValues } = props;
301+
const { name, type, onChange, value /* selectableValues */ } = props;
302302

303303
if (type === 'boolean') {
304304
input = (
@@ -309,16 +309,16 @@ function SettingsInput({
309309
disabled={!!disabled}
310310
/>
311311
);
312-
} else if (type === 'string' && selectableValues) {
313-
input = (
314-
<DropdownSetting
315-
name={name}
316-
selectableValues={selectableValues}
317-
onChange={onChange}
318-
value={value as string}
319-
disabled={!!disabled}
320-
/>
321-
);
312+
// } else if (type === 'string' && selectableValues) {
313+
// input = (
314+
// <DropdownSetting
315+
// name={name}
316+
// selectableValues={selectableValues}
317+
// onChange={onChange}
318+
// value={value as string}
319+
// disabled={!!disabled}
320+
// />
321+
// );
322322
} else if (type === 'number') {
323323
input = (
324324
<NumericSetting

0 commit comments

Comments
 (0)