File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
_official-blog-tutorial/app/routes Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import invariant from "tiny-invariant";
7
7
import { getPost } from "~/models/post.server" ;
8
8
9
9
export const loader = async ( { params } : LoaderArgs ) => {
10
- invariant ( params . slug , ` params.slug is required` ) ;
10
+ invariant ( params . slug , " params.slug is required" ) ;
11
11
12
12
const post = await getPost ( params . slug ) ;
13
13
invariant ( post , `Post not found: ${ params . slug } ` ) ;
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ export const action = async ({ request }: ActionArgs) => {
31
31
return redirect ( "/posts/admin" ) ;
32
32
} ;
33
33
34
- const inputClassName = `w-full rounded border border-gray-500 px-2 py-1 text-lg` ;
34
+ const inputClassName =
35
+ "w-full rounded border border-gray-500 px-2 py-1 text-lg" ;
35
36
36
37
export default function NewPost ( ) {
37
38
const errors = useActionData < typeof action > ( ) ;
You can’t perform that action at this time.
0 commit comments