From bb44e4e6a5dc65aa38ff2c068003e124cc6b9075 Mon Sep 17 00:00:00 2001 From: Janis Date: Sun, 23 Jul 2023 01:32:58 +0200 Subject: [PATCH] add test icon --- package.json | 2 +- pages/articles/index.tsx | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7c373b1..5b8c3f9 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "next dev", + "dev": "prisma db push && next dev", "build": "next build", "start": "next start", "lint": "next lint" diff --git a/pages/articles/index.tsx b/pages/articles/index.tsx index 5c3e577..96c8d08 100644 --- a/pages/articles/index.tsx +++ b/pages/articles/index.tsx @@ -15,8 +15,14 @@ export default function CategoryList({ categories }: { categories: CategoryWithI
- - + 0 ? cat?.svg?.viewbox : "0 0 512 512"}> + 0 + ? cat?.svg?.path + : "M0 64C0 46.3 14.3 32 32 32H88h48 56c17.7 0 32 14.3 32 32s-14.3 32-32 32V400c0 44.2-35.8 80-80 80s-80-35.8-80-80V96C14.3 96 0 81.7 0 64zM136 96H88V256h48V96zM288 64c0-17.7 14.3-32 32-32h56 48 56c17.7 0 32 14.3 32 32s-14.3 32-32 32V400c0 44.2-35.8 80-80 80s-80-35.8-80-80V96c-17.7 0-32-14.3-32-32zM424 96H376V256h48V96z" + } + />
{cat.title}