Skip to content
This repository was archived by the owner on Jul 15, 2025. It is now read-only.

Commit 24f91cc

Browse files
renaming the left-sidebar to market sidebar
1 parent cc75e10 commit 24f91cc

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react"
2-
import { LeftSidebar } from "@/components/ui/left-sidebar"
2+
import { MarketSidebar } from "@/components/ui/market-sidebar"
33
import { useMainLayoutStore } from "@/stores/mainLayoutStore"
44

55
export const MarketSelector: React.FC = () => {
@@ -8,5 +8,5 @@ export const MarketSelector: React.FC = () => {
88
// Only render when open to save memory
99
if (!isOpen) return null
1010

11-
return <LeftSidebar />
11+
return <MarketSidebar />
1212
}

src/components/ui/left-sidebar.tsx renamed to src/components/ui/market-sidebar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from "react"
22
import { cn } from "@/lib/utils"
33
import { useMainLayoutStore } from "@/stores/mainLayoutStore"
4-
import { leftSidebarConfig } from "@/config/leftSidebarConfig"
4+
import { marketSidebarConfig } from "@/config/marketSidebarConfig"
55

6-
export const LeftSidebar: React.FC = () => {
6+
export const MarketSidebar: React.FC = () => {
77
const { isOverlaySidebarOpen: isOpen, overlaySidebarKey: key, setOverlaySidebar } = useMainLayoutStore()
88
const sidebarRef = React.useRef<HTMLDivElement>(null)
99

@@ -39,9 +39,9 @@ export const LeftSidebar: React.FC = () => {
3939
}
4040
}, [isOpen])
4141

42-
if (!isOpen || !key || !leftSidebarConfig[key]) return null
42+
if (!isOpen || !key || !marketSidebarConfig[key]) return null
4343

44-
const { body } = leftSidebarConfig[key]
44+
const { body } = marketSidebarConfig[key]
4545

4646
return (
4747
<>

src/config/leftSidebarConfig.tsx renamed to src/config/marketSidebarConfig.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { ReactNode } from 'react';
22
import { MarketSelectorList } from '@/components/MarketSelector/MarketSelectorList';
33

4-
export interface LeftSidebarConfig {
4+
export interface MarketSidebarConfig {
55
[key: string]: {
66
body: ReactNode;
77
title?: string;
88
};
99
}
1010

11-
export const leftSidebarConfig: LeftSidebarConfig = {
11+
export const marketSidebarConfig: MarketSidebarConfig = {
1212
'market-list': {
1313
body: <MarketSelectorList />,
1414
},

0 commit comments

Comments
 (0)