Showing 2 of 2 total issues
Function ThemeSwitcher
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ThemeSwitcher: React.FC = () => {
const [{ mode }, toggleTheme] = useTheme();
const [isClient, setIsClient] = useState<boolean>(false);
useEffect(() => {
Function useSiteMetadata
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useSiteMetadata = () => {
const { site } = useStaticQuery(graphql`
query SiteMetaData {
site {
siteMetadata {