Explorar el Código

change var name

yohei0125 hace 3 años
padre
commit
a4d260c7c0
Se han modificado 1 ficheros con 6 adiciones y 5 borrados
  1. 6 5
      packages/app/src/components/Theme/ThemeChristmas.tsx

+ 6 - 5
packages/app/src/components/Theme/ThemeChristmas.tsx

@@ -19,16 +19,17 @@ type Props = {
 }
 }
 
 
 const ThemeChristmas = ({ children, colorScheme }: Props): JSX.Element => {
 const ThemeChristmas = ({ children, colorScheme }: Props): JSX.Element => {
-  const element = (
+  const newChildren = (
     <>
     <>
-      {colorScheme && (
-        <div className={'grw-bg-image-wrapper'}>
-          <Image className='grw-bg-image' alt='background image' src={getBackgroundImageSrc(colorScheme)} layout='fill' quality="100" />
+      {colorScheme != null && (
+        <div className='grw-bg-image-wrapper'>
+          <Image className='grw-bg-image' alt='background-image' src={getBackgroundImageSrc(colorScheme)} layout='fill' quality="100" />
         </div>
         </div>
       )}
       )}
       {children}
       {children}
     </>
     </>
   );
   );
-  return <ThemeInjector className={`${styles.theme}`}>{element}</ThemeInjector>;
+  return <ThemeInjector className={styles.theme}>{newChildren}</ThemeInjector>;
 };
 };
+
 export default ThemeChristmas;
 export default ThemeChristmas;