1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

apply suggestions

This commit is contained in:
grafixeyehero 2021-11-20 16:15:42 +03:00
parent aaa69d92fe
commit 3c32e871ab
3 changed files with 10 additions and 5 deletions

View file

@ -16,7 +16,7 @@ const createLinkElement = ({ className, title }) => ({
</a>`
});
const LnkEditUserPreferences: FunctionComponent<IProps> = ({ className, title }: IProps) => {
const LinkEditUserPreferences: FunctionComponent<IProps> = ({ className, title }: IProps) => {
return (
<div
dangerouslySetInnerHTML={createLinkElement({
@ -27,4 +27,4 @@ const LnkEditUserPreferences: FunctionComponent<IProps> = ({ className, title }:
);
};
export default LnkEditUserPreferences;
export default LinkEditUserPreferences;

View file

@ -11,11 +11,16 @@ const createSelectElement = ({ className, label, option }) => ({
</select>`
});
type ProvidersArr = {
Name?: string;
Id?: string;
}
type IProps = {
className?: string;
label?: string;
currentProviderId: string;
providers: any
providers: ProvidersArr[]
}
const SelectElement: FunctionComponent<IProps> = ({ className, label, currentProviderId, providers }: IProps) => {