Przeglądaj źródła

Remove unused styled jsx tag

This caused the lint to fail on CI

    > auth
    $ /home/runner/work/ente/ente/web/node_modules/.bin/tsc
    Error: src/pages/auth/index.tsx(125,20): error TS2322: Type '{ children: string; jsx: true; }' is not assignable to type 'ClassAttributes<HTMLStyleElement> & StyleHTMLAttributes<HTMLStyleElement> & { css?: Interpolation<Theme>; }'.
      Property 'jsx' does not exist on type 'ClassAttributes<HTMLStyleElement> & StyleHTMLAttributes<HTMLStyleElement> & { css?: Interpolation<Theme>; }'.
    error Command failed with exit code 2.

From reading the code, this CSS doesn't seem to be coming into effect. Then I
also did a test to verify that the auth app is correctly switching to a 2 column
layout even without this.
Manav Rathi 1 rok temu
rodzic
commit
e16834e52e
1 zmienionych plików z 0 dodań i 13 usunięć
  1. 0 13
      web/apps/auth/src/pages/auth/index.tsx

+ 0 - 13
web/apps/auth/src/pages/auth/index.tsx

@@ -122,19 +122,6 @@ const AuthenticatorCodesPage = () => {
                 <AuthFooter />
                 <AuthFooter />
                 <div style={{ marginBottom: "4rem" }} />
                 <div style={{ marginBottom: "4rem" }} />
             </div>
             </div>
-            <style jsx>{`
-                @media (min-width: 800px) {
-                    .row {
-                        display: flex;
-                        flex-wrap: wrap;
-                        justify-content: center;
-                    }
-                    .col {
-                        flex: 0 0 50%;
-                        max-width: 50%;
-                    }
-                }
-            `}</style>
         </>
         </>
     );
     );
 };
 };