bases de la billing page

This commit is contained in:
m5r
2021-09-27 06:44:26 +08:00
parent 0f2c3daf77
commit d1b88078fb
8 changed files with 220 additions and 116 deletions

View File

@ -0,0 +1,18 @@
import type { FunctionComponent, MouseEventHandler } from "react";
import { HiExternalLink } from "react-icons/hi";
type Props = {
onClick: MouseEventHandler<HTMLButtonElement>;
text: string;
};
const PaddleLink: FunctionComponent<Props> = ({ onClick, text }) => (
<button className="flex space-x-2 items-center text-left" onClick={onClick}>
<HiExternalLink className="w-6 h-6 flex-shrink-0" />
<span className="transition-colors duration-150 border-b border-transparent hover:border-primary-500">
{text}
</span>
</button>
);
export default PaddleLink;

View File

@ -19,7 +19,7 @@ const SettingsLayout: FunctionComponent = ({ children }) => {
</header>
</header>
<main>{children}</main>
<main className="flex flex-col flex-grow">{children}</main>
</Layout>
);
};