mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-03-05 19:23:44 +08:00
no log: Fix format issues
This commit is contained in:
parent
9c7089efff
commit
137aa698bb
1 changed files with 20 additions and 19 deletions
|
@ -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…
Reference in a new issue