From e7f34e8f822e3924f55f649de02308130aaf47cb Mon Sep 17 00:00:00 2001 From: justice chimobi Date: Sat, 21 Sep 2024 20:59:06 +0100 Subject: [PATCH] chore: remove unwanted line of import --- .env | 5 ----- src/components/ArticleCard/Articles.tsx | 2 +- src/pages/Articles/components/CommentDrawer.tsx | 1 - 3 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 .env diff --git a/.env b/.env deleted file mode 100644 index 8669aa2..0000000 --- a/.env +++ /dev/null @@ -1,5 +0,0 @@ -# VITE_API_BASE_URL=http://learn-hub-backend.test/api/v1 - -# VITE_API_BASE_URL=https://learn-hub-backend-api.onrender.com/api/v1 - -VITE_API_BASE_URL=http://learn-hub-backend.test/api/v1 \ No newline at end of file diff --git a/src/components/ArticleCard/Articles.tsx b/src/components/ArticleCard/Articles.tsx index 4d5ac1d..4586368 100644 --- a/src/components/ArticleCard/Articles.tsx +++ b/src/components/ArticleCard/Articles.tsx @@ -20,7 +20,7 @@ interface IProps { articleImg: string; title: string; description: string; - read_time: string; + read_time?: string; authorUsername?: string; authorFullname?: string; authorAvatar?: string; diff --git a/src/pages/Articles/components/CommentDrawer.tsx b/src/pages/Articles/components/CommentDrawer.tsx index 35fe2c2..13e4553 100644 --- a/src/pages/Articles/components/CommentDrawer.tsx +++ b/src/pages/Articles/components/CommentDrawer.tsx @@ -15,7 +15,6 @@ import { } from '@chakra-ui/react' import { Button, ContentBlockContent, Editor } from '@components/index' -import { stripTags } from '@helpers/stripTags' import { useUser } from '@context/userContext' import { colors } from '../../../colors'