This repository was archived by the owner on Jul 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react"
2
- import { LeftSidebar } from "@/components/ui/left -sidebar"
2
+ import { MarketSidebar } from "@/components/ui/market -sidebar"
3
3
import { useMainLayoutStore } from "@/stores/mainLayoutStore"
4
4
5
5
export const MarketSelector : React . FC = ( ) => {
@@ -8,5 +8,5 @@ export const MarketSelector: React.FC = () => {
8
8
// Only render when open to save memory
9
9
if ( ! isOpen ) return null
10
10
11
- return < LeftSidebar />
11
+ return < MarketSidebar />
12
12
}
Original file line number Diff line number Diff line change 1
1
import React from "react"
2
2
import { cn } from "@/lib/utils"
3
3
import { useMainLayoutStore } from "@/stores/mainLayoutStore"
4
- import { leftSidebarConfig } from "@/config/leftSidebarConfig "
4
+ import { marketSidebarConfig } from "@/config/marketSidebarConfig "
5
5
6
- export const LeftSidebar : React . FC = ( ) => {
6
+ export const MarketSidebar : React . FC = ( ) => {
7
7
const { isOverlaySidebarOpen : isOpen , overlaySidebarKey : key , setOverlaySidebar } = useMainLayoutStore ( )
8
8
const sidebarRef = React . useRef < HTMLDivElement > ( null )
9
9
@@ -39,9 +39,9 @@ export const LeftSidebar: React.FC = () => {
39
39
}
40
40
} , [ isOpen ] )
41
41
42
- if ( ! isOpen || ! key || ! leftSidebarConfig [ key ] ) return null
42
+ if ( ! isOpen || ! key || ! marketSidebarConfig [ key ] ) return null
43
43
44
- const { body } = leftSidebarConfig [ key ]
44
+ const { body } = marketSidebarConfig [ key ]
45
45
46
46
return (
47
47
< >
Original file line number Diff line number Diff line change 1
1
import { ReactNode } from 'react' ;
2
2
import { MarketSelectorList } from '@/components/MarketSelector/MarketSelectorList' ;
3
3
4
- export interface LeftSidebarConfig {
4
+ export interface MarketSidebarConfig {
5
5
[ key : string ] : {
6
6
body : ReactNode ;
7
7
title ?: string ;
8
8
} ;
9
9
}
10
10
11
- export const leftSidebarConfig : LeftSidebarConfig = {
11
+ export const marketSidebarConfig : MarketSidebarConfig = {
12
12
'market-list' : {
13
13
body : < MarketSelectorList /> ,
14
14
} ,
You can’t perform that action at this time.
0 commit comments