Skip to content

Commit

Permalink
feat(user): create user account
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelB committed Jun 3, 2020
1 parent 77c8655 commit b46a0f9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/pages/users/new.js
@@ -1,22 +1,28 @@
/** @jsx jsx */
import { jsx, Heading, NavLink } from "theme-ui";
import { jsx, Heading, NavLink, Field } from "theme-ui";
import Head from "next/head";

import { withCustomUrqlClient } from "src/components/CustomUrqlClient";
import { withAuthProvider } from "src/hooks/useAuth";
import { Layout } from "src/components/layout/auth.layout";
import Link from "next/link";
import { Button } from "src/components/button";

export function UserPage() {
return (
<Layout>
<Head>
<title>Nouvel utilisateur | Admin cdtn </title>
<title>Création de compte | Admin cdtn </title>
</Head>
<Heading>Nouvel utilisateur</Heading>
<Heading>Creation de compte</Heading>
<Link href="/users" passHref>
<NavLink>Retour</NavLink>
</Link>
<form>
<Field name="username" label="Nom d'utilisateur" />
<Field name="email" label="Adresse email" />
<Button>Créer un compte</Button>
</form>
</Layout>
);
}
Expand Down

0 comments on commit b46a0f9

Please sign in to comment.