diff --git a/ui/autoMate/src/main/db/tables.ts b/ui/autoMate/src/main/db/tables.ts index 0f2ebb7..6d4fb11 100644 --- a/ui/autoMate/src/main/db/tables.ts +++ b/ui/autoMate/src/main/db/tables.ts @@ -10,15 +10,15 @@ CREATE TABLE IF NOT EXISTS categories ( `) -db.exec(` -CREATE TABLE IF NOT EXISTS contents ( - id INTEGER PRIMARY KEY AUTOINCREMENT not null, - title TEXT not null, - content TEXT not null, - category_id INTEGER, - created_at TEXT not null -); -`) +// db.exec(` +// CREATE TABLE IF NOT EXISTS contents ( +// id INTEGER PRIMARY KEY AUTOINCREMENT not null, +// title TEXT not null, +// content TEXT not null, +// category_id INTEGER, +// created_at TEXT not null +// ); +// `) // for (let i = 0; i < 20; i++) { // const name = Random.title(5, 10) diff --git a/ui/autoMate/src/renderer/src/pages/Content/Content.tsx b/ui/autoMate/src/renderer/src/pages/Content/Content.tsx index f7e0095..9515f20 100644 --- a/ui/autoMate/src/renderer/src/pages/Content/Content.tsx +++ b/ui/autoMate/src/renderer/src/pages/Content/Content.tsx @@ -1,11 +1,15 @@ import { useLoaderData } from "react-router-dom" import "./content.scss" +import { Button } from "antd" export const Content = () => { const content = useLoaderData() as ContentType return (
-

{content.title}

-
{content.content}
+ +