no log: Fix format issues

pull/1799/head
LASER-Yi 2 years ago
parent 9c7089efff
commit 137aa698bb
No known key found for this signature in database
GPG Key ID: BB28903D50A1D408

@ -28,24 +28,25 @@ export const LanguageSelector: FunctionComponent<
);
};
export const ProfileSelector: FunctionComponent<BaseInput<Language.Profile>> =
({ settingKey }) => {
const profiles = useLatestProfiles();
export const ProfileSelector: FunctionComponent<
BaseInput<Language.Profile>
> = ({ settingKey }) => {
const profiles = useLatestProfiles();
const profileOptions = useMemo<SelectorOption<number>[]>(
() =>
profiles.map((v) => {
return { label: v.name, value: v.profileId };
}),
[profiles]
);
const profileOptions = useMemo<SelectorOption<number>[]>(
() =>
profiles.map((v) => {
return { label: v.name, value: v.profileId };
}),
[profiles]
);
return (
<Selector
clearable
options={profileOptions}
settingKey={settingKey}
beforeStaged={(v) => (v === null ? "" : v)}
></Selector>
);
};
return (
<Selector
clearable
options={profileOptions}
settingKey={settingKey}
beforeStaged={(v) => (v === null ? "" : v)}
></Selector>
);
};

Loading…
Cancel
Save