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

splitting SuggestionsView component

This commit is contained in:
grafixeyehero 2022-08-07 02:33:25 +03:00
parent f4b878bea2
commit 7543e494c9
12 changed files with 311 additions and 187 deletions

View file

@ -1,9 +1,9 @@
import React, { FunctionComponent } from 'react';
const createButtonElement = ({ id, className }: IProps) => ({
const createElement = ({ id, className }: IProps) => ({
__html: `<div
is="emby-itemscontainer"
id="${id}"
${id}
class="${className}"
>
</div>`
@ -17,8 +17,8 @@ type IProps = {
const ItemsContainerElement: FunctionComponent<IProps> = ({ id, className }: IProps) => {
return (
<div
dangerouslySetInnerHTML={createButtonElement({
id: id,
dangerouslySetInnerHTML={createElement({
id: id ? `id='${id}'` : '',
className: className
})}
/>