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
|
||||
}
|
||||
|
||||
const InputElement: FunctionComponent<IProps> = ({ type, id, label, ...rest }: IProps) => {
|
||||
const InputElement: FunctionComponent<IProps> = ({ type, id, label, options }: IProps) => {
|
||||
return (
|
||||
<div
|
||||
dangerouslySetInnerHTML={createInputElement({
|
||||
type: type,
|
||||
id: id,
|
||||
label: globalize.translate(label),
|
||||
options: rest.options ? rest.options : ''
|
||||
options: options ? options : ''
|
||||
})}
|
||||
/>
|
||||
);
|
||||
|
|
|
@ -45,16 +45,13 @@ const NewUserPage: FunctionComponent = () => {
|
|||
|
||||
loadUser();
|
||||
|
||||
const getItemsResult = items => {
|
||||
const itemsArr: ItemsArr[] = [];
|
||||
|
||||
for (const item of items) {
|
||||
itemsArr.push({
|
||||
const getItemsResult = (items: ItemsArr[]) => {
|
||||
return items.map(item =>
|
||||
({
|
||||
Id: item.Id,
|
||||
Name: item.Name
|
||||
});
|
||||
}
|
||||
return itemsArr;
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
const loadMediaFolders = (result) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue