Skip to content

Commit

Permalink
Update route.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa committed Feb 4, 2024
1 parent cb3434b commit 1e3993c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/routes/_.cms.tutorials/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import { I18n } from "~/modules/i18n.server";
import { Logger } from "~/modules/logger.server";
import { SessionStorage } from "~/modules/session.server";
import { database } from "~/services/db.server";
import { Link } from "~/ui/Link";
import { Button } from "~/ui/Button";
import { Form } from "~/ui/Form";
import { assertUUID } from "~/utils/uuid";

import { ImportTutorials } from "./import-tutorials";
Expand Down Expand Up @@ -84,7 +85,11 @@ export default function Component() {
<h2 className="text-3xl font-bold">Tutorials</h2>

<div className="flex items-center gap-4">
<Link href="/cms/tutorials/new">Write Article</Link>
<Form method="get" action="/cms/tutorials/new">
<Button type="submit" variant="primary">
Write Tutorial
</Button>
</Form>

<ImportTutorials />
<ResetTutorials />
Expand Down

0 comments on commit 1e3993c

Please sign in to comment.