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

* Update typescript-eslint to v8 * Disable @typescript-eslint/prefer-optional-chain This rule now requires type information which is not currently enabled for the Typescript ESLint checks. * Remove unused vars * Disable no-empty-function for line using updated config * Disable rule for lines that violate updated typescript-eslint rules * Use void operator to fix no-floating-promises Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com> * Use void operator to fix no-floating-promises Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com> --------- Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
30 lines
673 B
TypeScript
30 lines
673 B
TypeScript
import Box from '@mui/material/Box';
|
|
import React, { useEffect } from 'react';
|
|
|
|
import layoutManager from './layoutManager';
|
|
import { DRAWER_WIDTH } from './ResponsiveDrawer';
|
|
|
|
const styles = layoutManager.experimental ? {
|
|
left: {
|
|
md: DRAWER_WIDTH
|
|
}
|
|
} : {};
|
|
|
|
const Backdrop = () => {
|
|
useEffect(() => {
|
|
// Initialize the UI components after first render
|
|
void import('../scripts/autoBackdrops');
|
|
}, []);
|
|
|
|
return (
|
|
<>
|
|
<Box
|
|
className='backdropContainer'
|
|
sx={styles}
|
|
/>
|
|
<div className='backgroundContainer' />
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default Backdrop;
|