test again
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; | |
export function withAppContext< | |
P extends { appContext?: AppContextInterface }, | |
R = Omit<P, 'appContext'> | |
>( | |
Component: React.ComponentClass<P> | React.StatelessComponent<P> | |
): React.SFC<R> { | |
return function BoundComponent(props: R) { | |
return ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { ReactNode } from 'react' | |
import { forwardRef } from 'react' | |
import type { LinkProps as ChakraLinkProps } from '@chakra-ui/react' | |
import { Link as ChakraLink } from '@chakra-ui/react' | |
import type { LinkProps as NextLinkProps } from 'next/dist/client/link' | |
import NextLink from 'next/link' | |
import { useRouter } from 'next/router' | |
export type WithChildren<Props = {}> = Props & { | |
children: ReactNode | |
} |
works
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const plugin = require('tailwindcss/plugin'); | |
/** @type {import('tailwindcss').Config} */ | |
module.exports = { | |
... | |
theme: { | |
extend: {}, | |
... | |
}, | |
plugins: [ | |
// default utils |
OlderNewer