]> Untitled Git - lemmy-ui.git/commitdiff
Fixing helmet theme bug. Fixes #628 (#629)
authorDessalines <dessalines@users.noreply.github.com>
Fri, 15 Apr 2022 21:22:57 +0000 (17:22 -0400)
committerGitHub <noreply@github.com>
Fri, 15 Apr 2022 21:22:57 +0000 (21:22 +0000)
src/shared/components/app/theme.tsx

index b609b71af4aa658787221c65f768ea3ec3a39227..cdb7f7eb321c530584c53c7c5373dc38c8a022ac 100644 (file)
@@ -38,7 +38,6 @@ export class Theme extends Component<Props> {
     } else {
       return (
         <Helmet>
-          [
           <link
             rel="stylesheet"
             type="text/css"
@@ -46,7 +45,6 @@ export class Theme extends Component<Props> {
             id="default-light"
             media="(prefers-color-scheme: light)"
           />
-          ,
           <link
             rel="stylesheet"
             type="text/css"
@@ -54,7 +52,6 @@ export class Theme extends Component<Props> {
             id="default-dark"
             media="(prefers-color-scheme: no-preference), (prefers-color-scheme: dark)"
           />
-          ];
         </Helmet>
       );
     }