mirror of
https://github.com/makeplane/plane.git
synced 2026-06-13 19:19:54 +00:00
83fdebf64d
- Add jscodeshift-based codemod to convert arrow function components to function declarations - Support React.FC, observer-wrapped, and forwardRef components - Include comprehensive test suite covering edge cases - Add npm script to run transformer across codebase - Target only .tsx files in source directories, excluding node_modules and declaration files * [WEB-5459] chore: updates after running codemod --------- Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
16 lines
506 B
TypeScript
16 lines
506 B
TypeScript
import { useTheme } from "next-themes";
|
|
import LogoSpinnerDark from "@/app/assets/images/logo-spinner-dark.gif?url";
|
|
import LogoSpinnerLight from "@/app/assets/images/logo-spinner-light.gif?url";
|
|
|
|
export function LogoSpinner() {
|
|
const { resolvedTheme } = useTheme();
|
|
|
|
const logoSrc = resolvedTheme === "dark" ? LogoSpinnerLight : LogoSpinnerDark;
|
|
|
|
return (
|
|
<div className="flex items-center justify-center">
|
|
<img src={logoSrc} alt="logo" className="h-6 w-auto sm:h-11" />
|
|
</div>
|
|
);
|
|
}
|