From 7a845ea6446fcd9192d059852b8b6227c979b69b Mon Sep 17 00:00:00 2001 From: Damla Koksal Date: Fri, 22 Apr 2022 04:06:17 +0300 Subject: [PATCH] [#3]feat: edit dasboard styling --- next.config.js | 2 +- src/components/common/Icon/Icon.tsx | 18 ++++ .../layouts/Dashboard/DashboardLayout.tsx | 8 +- .../Dashboard/modules/Footer/Footer.tsx | 4 +- .../layouts/Dashboard/modules/Nav/Nav.tsx | 84 ++++++++----------- .../DashboardPage.tsx} | 4 +- src/components/templates/index.tsx | 2 +- src/pages/dashboard/index.tsx | 4 +- 8 files changed, 69 insertions(+), 57 deletions(-) rename src/components/templates/{ProfilePage/ProfilePage.tsx => DashboardPage/DashboardPage.tsx} (98%) diff --git a/next.config.js b/next.config.js index c1c91ed..7a9e925 100644 --- a/next.config.js +++ b/next.config.js @@ -10,7 +10,7 @@ const nextConfig = { defaultLocale: 'en', }, images: { - domains: ['images.unsplash.com'], + domains: ['images.unsplash.com', 'avatars.githubusercontent.com'], }, }; diff --git a/src/components/common/Icon/Icon.tsx b/src/components/common/Icon/Icon.tsx index 984349b..e701c9e 100644 --- a/src/components/common/Icon/Icon.tsx +++ b/src/components/common/Icon/Icon.tsx @@ -3,6 +3,7 @@ export enum Icons { TWITTER = 'twitter', METAMASK = 'metamask', ETHEREUM = 'ethereum', + ETHEREUM_WHITE = 'ethereumWhite', } const icons = { @@ -470,6 +471,23 @@ const icons = { > ), + ethereumWhite: ( + + ), }; type Props = { diff --git a/src/components/layouts/Dashboard/DashboardLayout.tsx b/src/components/layouts/Dashboard/DashboardLayout.tsx index 2f3ed9c..5dfb16e 100644 --- a/src/components/layouts/Dashboard/DashboardLayout.tsx +++ b/src/components/layouts/Dashboard/DashboardLayout.tsx @@ -16,9 +16,11 @@ const Dashboardlayout = ({ children, title }: Props) => ( content="ConnEth dashboard for using utilities" /> -
-