Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dark mode removed #233

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions lib/app-setup/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,21 +197,21 @@ const Root = ({
}}
/>

<script
// @ts-ignore
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
__html: `
try {
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
document.querySelector('html').setAttribute('data-theme', 'dark')
} else {
document.querySelector('html').setAttribute('data-theme', 'light')
}
} catch (_) {}
`,
}}
/>
{/* <script */}
{/* // @ts-ignore */}
{/* // eslint-disable-next-line react/no-danger */}
{/* dangerouslySetInnerHTML={{ */}
{/* __html: ` */}
{/* try { */}
{/* if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) { */}
{/* document.querySelector('html').setAttribute('data-theme', 'dark') */}
{/* } else { */}
{/* document.querySelector('html').setAttribute('data-theme', 'light') */}
{/* } */}
{/* } catch (_) {} */}
{/* `, */}
{/* }} */}
{/* /> */}
</head>
<body className="antialiased">
<div
Expand Down
2 changes: 1 addition & 1 deletion src/apps/auth/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const Footer = () => {
<div className="hidden md:block lg:hidden">
<SocialMenu />
</div>
<ThemeSwitcher />
{/* <ThemeSwitcher /> */}
</div>
</div>
<div className="flex flex-col-reverse gap-4xl md:gap-0 md:flex-row md:items-center lg:justify-between">
Expand Down
13 changes: 1 addition & 12 deletions src/apps/auth/routes/_main+/cli-logged-in.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
import { Link } from '@remix-run/react';
import Container from '~/auth/components/container';
import { Button } from '~/components/atoms/button';
import { getCookie } from '~/root/lib/app-setup/cookies';
import withContext from '~/root/lib/app-setup/with-contxt';
import { IExtRemixCtx } from '~/root/lib/types/common';

const cliLoggedIn = () => {
return (
<Container
headerExtra={
<Button
variant="outline"
content="Sign in"
linkComponent={Link}
to="/login"
/>
}
>
<Container>
<div className="flex flex-col gap-6xl md:w-[500px] px-3xl py-5xl md:px-9xl">
<div className="flex flex-col gap-lg items-center text-center">
<div className="text-text-strong headingXl text-center">
Expand Down
Loading