Skip to content

Commit 5c90f86

Browse files
fix(_official-blog-tutorial): don't use unnecessary string literals (#281)
1 parent e1debf7 commit 5c90f86

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

_official-blog-tutorial/app/routes/posts.$slug.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import invariant from "tiny-invariant";
77
import { getPost } from "~/models/post.server";
88

99
export const loader = async ({ params }: LoaderArgs) => {
10-
invariant(params.slug, `params.slug is required`);
10+
invariant(params.slug, "params.slug is required");
1111

1212
const post = await getPost(params.slug);
1313
invariant(post, `Post not found: ${params.slug}`);

_official-blog-tutorial/app/routes/posts.admin.new.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export const action = async ({ request }: ActionArgs) => {
3131
return redirect("/posts/admin");
3232
};
3333

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";
3536

3637
export default function NewPost() {
3738
const errors = useActionData<typeof action>();

0 commit comments

Comments
 (0)