mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
4c2cb2368a
* chore: store various shades of accent color * refactor: custom theme selector * refactor: custom theme selector * chore: update custom theme input labels * fix: color generator function logic * fix: accent color preloaded data * chore: new theming structure * chore: update shades calculation logic * refactor: variable names * chore: update color scheming * chore: new color scheming * refactor: themes folder structure * chore: update classnames to the new ones * chore: update static colors * chore: sidebar link colors * chore: placeholder color * chore: update border classnames
26 lines
526 B
TypeScript
26 lines
526 B
TypeScript
import React from "react";
|
|
|
|
type Props = {
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
};
|
|
|
|
const Loader = ({ children, className = "" }: Props) => (
|
|
<div className={`${className} animate-pulse`} role="status">
|
|
{children}
|
|
</div>
|
|
);
|
|
|
|
type ItemProps = {
|
|
height?: string;
|
|
width?: string;
|
|
};
|
|
|
|
const Item: React.FC<ItemProps> = ({ height = "auto", width = "auto" }) => (
|
|
<div className="rounded-md bg-custom-background-80" style={{ height: height, width: width }} />
|
|
);
|
|
|
|
Loader.Item = Item;
|
|
|
|
export { Loader };
|