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

Refactoring #282

Merged
merged 2 commits into from
Dec 13, 2023
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
6 changes: 5 additions & 1 deletion src/app/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import { ThemeProvider } from "next-themes";

export function Providers({ children }: { children: React.ReactNode }) {
return (
<ThemeProvider attribute="class" disableTransitionOnChange>
<ThemeProvider
forcedTheme="dark"
attribute="class"
disableTransitionOnChange
>
{children}
</ThemeProvider>
);
Expand Down
2 changes: 0 additions & 2 deletions src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { Navigation } from "@/components/Navigation";
import classNames from "classnames";
import { Search } from "./Search";
import { StartFreeCTAButton } from "./StartFreeCTAButton";
import { ThemeSelector } from "./ThemeSelector";
import { Container } from "@/components/shared/Container";

function Header() {
Expand Down Expand Up @@ -45,7 +44,6 @@ function Header() {
<Search />
</div>
<div className="hidden justify-end lg:flex">
<ThemeSelector className="relative z-10 my-auto mr-8" />
<StartFreeCTAButton />
</div>
{/* <div className="-my-5 mr-6 sm:mr-8 md:mr-0">
Expand Down
1 change: 0 additions & 1 deletion src/components/MobileNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export function MobileNavigation() {
<LogoIcon alt="Zuplo logo" className="w-28 text-transparent" />
</Link>
<div className="flex">
<ThemeSelector className="relative z-10 my-auto mr-8" />
<button
type="button"
onClick={() => close()}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function NavSection({
}) {
const pathname = usePathname();
const linkClassName =
"block w-full px-6 leading-6 tracking-wider transition-all hover:text-pink hover:text-shadow";
"block w-full px-6 leading-6 tracking-wider transition-all hover:text-pink hover:text-shadow cursor-pointer";

if ("href" in link) {
return (
Expand Down