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
aaa69d92fe
commit
3c32e871ab
3 changed files with 10 additions and 5 deletions
|
@ -16,7 +16,7 @@ const createLinkElement = ({ className, title }) => ({
|
||||||
</a>`
|
</a>`
|
||||||
});
|
});
|
||||||
|
|
||||||
const LnkEditUserPreferences: FunctionComponent<IProps> = ({ className, title }: IProps) => {
|
const LinkEditUserPreferences: FunctionComponent<IProps> = ({ className, title }: IProps) => {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
dangerouslySetInnerHTML={createLinkElement({
|
dangerouslySetInnerHTML={createLinkElement({
|
||||||
|
@ -27,4 +27,4 @@ const LnkEditUserPreferences: FunctionComponent<IProps> = ({ className, title }:
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default LnkEditUserPreferences;
|
export default LinkEditUserPreferences;
|
|
@ -11,11 +11,16 @@ const createSelectElement = ({ className, label, option }) => ({
|
||||||
</select>`
|
</select>`
|
||||||
});
|
});
|
||||||
|
|
||||||
|
type ProvidersArr = {
|
||||||
|
Name?: string;
|
||||||
|
Id?: string;
|
||||||
|
}
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
className?: string;
|
className?: string;
|
||||||
label?: string;
|
label?: string;
|
||||||
currentProviderId: string;
|
currentProviderId: string;
|
||||||
providers: any
|
providers: ProvidersArr[]
|
||||||
}
|
}
|
||||||
|
|
||||||
const SelectElement: FunctionComponent<IProps> = ({ className, label, currentProviderId, providers }: IProps) => {
|
const SelectElement: FunctionComponent<IProps> = ({ className, label, currentProviderId, providers }: IProps) => {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import ButtonElement from '../dashboard/users/ButtonElement';
|
||||||
import CheckBoxElement from '../dashboard/users/CheckBoxElement';
|
import CheckBoxElement from '../dashboard/users/CheckBoxElement';
|
||||||
import CheckBoxListItem from '../dashboard/users/CheckBoxListItem';
|
import CheckBoxListItem from '../dashboard/users/CheckBoxListItem';
|
||||||
import InputElement from '../dashboard/users/InputElement';
|
import InputElement from '../dashboard/users/InputElement';
|
||||||
import LnkEditUserPreferences from '../dashboard/users/LnkEditUserPreferences';
|
import LinkEditUserPreferences from '../dashboard/users/LinkEditUserPreferences';
|
||||||
import SectionTitleLinkElement from '../dashboard/users/SectionTitleLinkElement';
|
import SectionTitleLinkElement from '../dashboard/users/SectionTitleLinkElement';
|
||||||
import SelectElement from '../dashboard/users/SelectElement';
|
import SelectElement from '../dashboard/users/SelectElement';
|
||||||
import SelectSyncPlayAccessElement from '../dashboard/users/SelectSyncPlayAccessElement';
|
import SelectSyncPlayAccessElement from '../dashboard/users/SelectSyncPlayAccessElement';
|
||||||
|
@ -274,7 +274,7 @@ const UserEditPage: FunctionComponent = () => {
|
||||||
className='lnkEditUserPreferencesContainer'
|
className='lnkEditUserPreferencesContainer'
|
||||||
style={{paddingBottom: '1em'}}
|
style={{paddingBottom: '1em'}}
|
||||||
>
|
>
|
||||||
<LnkEditUserPreferences
|
<LinkEditUserPreferences
|
||||||
className= 'lnkEditUserPreferences button-link'
|
className= 'lnkEditUserPreferences button-link'
|
||||||
title= 'ButtonEditOtherUserPreferences'
|
title= 'ButtonEditOtherUserPreferences'
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue