From ccd73de19e547c1e7297a382dbffa7e5d9ac8c91 Mon Sep 17 00:00:00 2001 From: Madalina Raicu Date: Thu, 8 Feb 2024 15:54:09 +0000 Subject: [PATCH] fix: update sidebar close --- apps/trading/components/sidebar/sidebar.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/trading/components/sidebar/sidebar.tsx b/apps/trading/components/sidebar/sidebar.tsx index 0f9db4f60..628e574d6 100644 --- a/apps/trading/components/sidebar/sidebar.tsx +++ b/apps/trading/components/sidebar/sidebar.tsx @@ -27,7 +27,7 @@ export enum ViewType { Transfer = 'Transfer', Settings = 'Settings', ViewAs = 'ViewAs', - Chart = 'Chart', + Close = 'Close', } export type BarView = @@ -53,7 +53,7 @@ export type BarView = type: ViewType.Settings; } | { - type: ViewType.Chart; + type: ViewType.Close; }; export const Sidebar = ({ options }: { options?: ReactNode }) => { @@ -101,9 +101,9 @@ export const Sidebar = ({ options }: { options?: ReactNode }) => { ) : ( currView && ( ) @@ -211,7 +211,7 @@ export const SidebarContent = () => { } } - if (view.type === ViewType.Chart) { + if (view.type === ViewType.Close) { return ; }