Skip to content

Commit

Permalink
fix some deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Mar 23, 2022
1 parent 5b29a80 commit a0e32e1
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 415 deletions.
2 changes: 1 addition & 1 deletion app/models/user.server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Password, User } from "@prisma/client";
import bcrypt from "@node-rs/bcrypt";
import bcrypt from "bcryptjs";

import { prisma } from "~/db.server";

Expand Down
9 changes: 4 additions & 5 deletions app/routes/notes/new.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from "react";
import { Form, json, redirect, useActionData } from "remix";
import type { ActionFunction } from "remix";
import Alert from "@reach/alert";

import { createNote } from "~/models/note.server";
import { requireUserId } from "~/session.server";
Expand Down Expand Up @@ -76,9 +75,9 @@ export default function NewNotePage() {
/>
</label>
{actionData?.errors?.title && (
<Alert className="pt-1 text-red-700" id="title=error">
<div className="pt-1 text-red-700" id="title=error">
{actionData.errors.title}
</Alert>
</div>
)}
</div>

Expand All @@ -97,9 +96,9 @@ export default function NewNotePage() {
/>
</label>
{actionData?.errors?.body && (
<Alert className="pt-1 text-red-700" id="body=error">
<div className="pt-1 text-red-700" id="body=error">
{actionData.errors.body}
</Alert>
</div>
)}
</div>

Expand Down
Loading

0 comments on commit a0e32e1

Please sign in to comment.