feat: user activation and emails
This commit is contained in:
14
components/elements/customLink.tsx
Normal file
14
components/elements/customLink.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import Link from 'next/link';
|
||||
|
||||
type CustomLinkProps = {
|
||||
path: string;
|
||||
text: string;
|
||||
};
|
||||
|
||||
export function CustomLink({ path, text }: CustomLinkProps) {
|
||||
return (
|
||||
<Link href={path} className="overflow-hidden rounded-md">
|
||||
<h1>{text}</h1>
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
10
components/elements/error.tsx
Normal file
10
components/elements/error.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { HomeLink } from './homeLink';
|
||||
|
||||
export default function ErrorComponent() {
|
||||
return (
|
||||
<div>
|
||||
<h1>Oops. Something went wrong. Please try later :(</h1>
|
||||
<HomeLink />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
5
components/elements/homeLink.tsx
Normal file
5
components/elements/homeLink.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { CustomLink } from './customLink';
|
||||
|
||||
export function HomeLink() {
|
||||
return <CustomLink path={`/`} text={`Home`} />;
|
||||
}
|
||||
11
components/elements/success.tsx
Normal file
11
components/elements/success.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { HomeLink } from './homeLink';
|
||||
|
||||
export function SuccessComponent(message: string) {
|
||||
return (
|
||||
<div>
|
||||
<h1>Success!</h1>
|
||||
<h3>{message}</h3>
|
||||
<HomeLink />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user