mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
3c2f5d12ed
* chore: add next theme and initial setup * chore: add dark mode colors to layouts * chore: user general setting page theming * chore: dashboard theming * chore: project page theming * chore: workspace setting page theming * chore: my issue page theming * chore: cmdk theming * chore: change hardcode bg and text color to theme * chore: change color name according to the design * style: fix card in the dashboard * style: fix merge conflict design issues * style: add light high contrast and dark high contrast * style: fix cmd k menu color and selection * feat: change theme from cmdk menu * chore: add multiple theme field to custom theme * chore: removed custom theming * fix: build error --------- Co-authored-by: Saheb Giri <iamsahebgiri@gmail.com>
31 lines
630 B
TypeScript
31 lines
630 B
TypeScript
// layouts
|
|
import Container from "layouts/container";
|
|
|
|
type Meta = {
|
|
title?: string | null;
|
|
description?: string | null;
|
|
image?: string | null;
|
|
url?: string | null;
|
|
};
|
|
|
|
type Props = {
|
|
meta?: Meta;
|
|
children: React.ReactNode;
|
|
noPadding?: boolean;
|
|
bg?: "primary" | "secondary";
|
|
noHeader?: boolean;
|
|
breadcrumbs?: JSX.Element;
|
|
left?: JSX.Element;
|
|
right?: JSX.Element;
|
|
};
|
|
|
|
const DefaultLayout: React.FC<Props> = ({ meta, children }) => (
|
|
<Container meta={meta}>
|
|
<div className="w-full h-screen overflow-auto bg-brand-base">
|
|
<>{children}</>
|
|
</div>
|
|
</Container>
|
|
);
|
|
|
|
export default DefaultLayout;
|