From 5fc6ae8e0f60c9f8d4d50e944bfd253bdd8cfc7c Mon Sep 17 00:00:00 2001 From: Roie Date: Tue, 6 Aug 2024 10:36:11 +0300 Subject: [PATCH 001/242] chore: Update environment variable name for server URL and add new fields to Chat and Message types --- next.config.mjs | 2 +- src/components/Sidebar/Sidebar.scss | 5 + src/components/Sidebar/Sidebar.tsx | 12 +- src/pages/chat.tsx | 7 +- src/pages/dashboard.tsx | 181 +++++++++++++++------------- src/pages/register.tsx | 5 +- src/types/chat.type.ts | 4 +- src/types/message.type.ts | 3 +- styles/chat.module.css | 2 +- 9 files changed, 122 insertions(+), 99 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index d6c1fa0..4339bc0 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,7 +1,7 @@ /** @type {import('next').NextConfig} */ const nextConfig = { env: { - BACKEND_URL: process.env.BACKEND_URL, + NEXT_PUBLIC_SERVER_URL: process.env.BACKEND_URL, }, }; diff --git a/src/components/Sidebar/Sidebar.scss b/src/components/Sidebar/Sidebar.scss index 402f30b..eb89671 100644 --- a/src/components/Sidebar/Sidebar.scss +++ b/src/components/Sidebar/Sidebar.scss @@ -55,3 +55,8 @@ .active { color: #fff !important; } +.bg-gradient-primary { + background-color: #4e73df !important; + background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%); + background-size: cover; +} diff --git a/src/components/Sidebar/Sidebar.tsx b/src/components/Sidebar/Sidebar.tsx index 9606f90..92a996f 100644 --- a/src/components/Sidebar/Sidebar.tsx +++ b/src/components/Sidebar/Sidebar.tsx @@ -29,13 +29,19 @@ const Sidebar: React.FC = () => {