mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
apply suggestions
This commit is contained in:
parent
3ad2c1bfd1
commit
e6b614c6f2
2 changed files with 7 additions and 10 deletions
|
@ -18,14 +18,14 @@ type IProps = {
|
||||||
options?: string
|
options?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const InputElement: FunctionComponent<IProps> = ({ type, id, label, ...rest }: IProps) => {
|
const InputElement: FunctionComponent<IProps> = ({ type, id, label, options }: IProps) => {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
dangerouslySetInnerHTML={createInputElement({
|
dangerouslySetInnerHTML={createInputElement({
|
||||||
type: type,
|
type: type,
|
||||||
id: id,
|
id: id,
|
||||||
label: globalize.translate(label),
|
label: globalize.translate(label),
|
||||||
options: rest.options ? rest.options : ''
|
options: options ? options : ''
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
|
@ -45,16 +45,13 @@ const NewUserPage: FunctionComponent = () => {
|
||||||
|
|
||||||
loadUser();
|
loadUser();
|
||||||
|
|
||||||
const getItemsResult = items => {
|
const getItemsResult = (items: ItemsArr[]) => {
|
||||||
const itemsArr: ItemsArr[] = [];
|
return items.map(item =>
|
||||||
|
({
|
||||||
for (const item of items) {
|
|
||||||
itemsArr.push({
|
|
||||||
Id: item.Id,
|
Id: item.Id,
|
||||||
Name: item.Name
|
Name: item.Name
|
||||||
});
|
})
|
||||||
}
|
);
|
||||||
return itemsArr;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const loadMediaFolders = (result) => {
|
const loadMediaFolders = (result) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue