mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-04 05:12:16 +00:00
# Which Problems Are Solved Invalid formatting in the login codebase due to invalid prettier configuration # How the Problems Are Solved Fxed .prettierignore wildcards for login source files # Additional Changes Removed .prettierrc file because there is already a prettier.config.mjs file # Additional Context
16 lines
356 B
TypeScript
16 lines
356 B
TypeScript
"use client";
|
|
|
|
import { useTheme } from "next-themes";
|
|
import { ReactNode } from "react";
|
|
|
|
type Props = {
|
|
children: ReactNode;
|
|
};
|
|
|
|
export function LayoutProviders({ children }: Props) {
|
|
const { resolvedTheme } = useTheme();
|
|
const isDark = resolvedTheme === "dark";
|
|
|
|
return <div className={`${isDark ? "ui-dark" : "ui-light"} `}>{children}</div>;
|
|
}
|