diff --git a/src/pages/posts/[postId]/edit.tsx b/src/pages/posts/[postId]/edit.tsx index e045e55..23752dc 100644 --- a/src/pages/posts/[postId]/edit.tsx +++ b/src/pages/posts/[postId]/edit.tsx @@ -3,7 +3,6 @@ import { useState } from 'react'; import { redirect, useParams } from 'react-router-dom'; import { useLiveQuery } from 'dexie-react-hooks'; - import { Input } from '~/components/Input'; import type { IBlogPost } from '~/components/PostPreview'; import { db } from '~/services/db'; diff --git a/src/pages/posts/new.tsx b/src/pages/posts/new.tsx index e12639b..4f65e32 100644 --- a/src/pages/posts/new.tsx +++ b/src/pages/posts/new.tsx @@ -6,7 +6,6 @@ import { v4 as uuidv4 } from 'uuid'; import { Input } from '~/components/Input'; import { db } from '~/services/db'; - function getRandomInt(max: number) { return Math.floor(Math.random() * max); }