From 1847a276f717d359f82d9f22cc561f18531f33a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Geonizeli?= Date: Wed, 11 Aug 2021 21:45:29 -0300 Subject: [PATCH] fix Navbar and Sidebar --- app/javascript/src/App.tsx | 6 +- .../src/components/Navbar/Navbar.tsx | 2 +- app/javascript/src/components/SideNav.tsx | 70 +++++++++++-------- app/javascript/src/pages/Home/Home.tsx | 2 +- app/javascript/src/pages/Wallet/Wallet.tsx | 22 ++---- app/javascript/src/utils/getCurrencyLogo.ts | 11 +++ package.json | 1 + yarn.lock | 5 ++ 8 files changed, 71 insertions(+), 48 deletions(-) create mode 100644 app/javascript/src/utils/getCurrencyLogo.ts diff --git a/app/javascript/src/App.tsx b/app/javascript/src/App.tsx index dfc300e..b608234 100644 --- a/app/javascript/src/App.tsx +++ b/app/javascript/src/App.tsx @@ -1,6 +1,6 @@ import { graphql } from "babel-plugin-relay/macro"; import type { FC } from "react"; -import React from "react"; +import React, { Suspense } from "react"; import { useLazyLoadQuery } from "react-relay"; import { Navbar, SideNav } from "./components"; @@ -28,7 +28,9 @@ export const App: FC = () => {
- + + +
diff --git a/app/javascript/src/components/Navbar/Navbar.tsx b/app/javascript/src/components/Navbar/Navbar.tsx index 1377a04..f45deca 100644 --- a/app/javascript/src/components/Navbar/Navbar.tsx +++ b/app/javascript/src/components/Navbar/Navbar.tsx @@ -21,7 +21,7 @@ export const Navbar = () => { ?.getAttribute("content") ?? ""; return ( -