Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 4e1ece4

Browse files
committed
chore(dashboard): rename sidebar -> sidemenu
1 parent ef03f8f commit 4e1ece4

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/containers/thread/DashboardThread/Sidebar/Group.tsx renamed to src/containers/thread/DashboardThread/SideMenu/Group.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { FC, memo, Fragment } from 'react'
22

33
import type { TTab, TMenuGroup, TTouched } from '../spec'
44

5-
import { Folder, Item, Title, TouchedDot } from '../styles/sidebar/group'
5+
import { Folder, Item, Title, TouchedDot } from '../styles/side_menu/group'
66
import { tabOnChange } from '../logic'
77

88
type TProps = {

src/containers/thread/DashboardThread/Sidebar/index.tsx renamed to src/containers/thread/DashboardThread/SideMenu/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import type { TTab, TTouched, TMenuGroup } from '../spec'
99

1010
import Group from './Group'
1111

12-
import { Wrapper } from '../styles/sidebar'
12+
import { Wrapper } from '../styles/side_menu'
1313

1414
type TProps = {
1515
curTab: TTab
1616
touched: TTouched
1717
}
1818

19-
const Sidebar: FC<TProps> = ({ curTab, touched }) => {
19+
const SideMenu: FC<TProps> = ({ curTab, touched }) => {
2020
const groupKeys = keys(MENU)
2121

2222
return (
@@ -37,4 +37,4 @@ const Sidebar: FC<TProps> = ({ curTab, touched }) => {
3737
)
3838
}
3939

40-
export default memo(Sidebar)
40+
export default memo(SideMenu)

src/containers/thread/DashboardThread/constant.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { SnakeUpperCase } from '@/spec'
22

33
import type { TTab, TSettingField } from './spec'
44

5-
import { Icon } from './styles/sidebar'
5+
import { Icon } from './styles/side_menu'
66

77
export const TAB = {
88
OVERVIEW: 'overview',

src/containers/thread/DashboardThread/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { FC } from 'react'
99
import { bond } from '@/utils/mobx'
1010

1111
import { TAB } from './constant'
12-
import Sidebar from './Sidebar'
12+
import SideMenu from './SideMenu'
1313

1414
import type { TStore } from './store'
1515
import { Wrapper, MainWrapper } from './styles'
@@ -44,7 +44,7 @@ const DashboardThreadContainer: FC<TProps> = ({
4444

4545
return (
4646
<Wrapper testid={testid}>
47-
<Sidebar curTab={curTab} touched={touched} />
47+
<SideMenu curTab={curTab} touched={touched} />
4848
<MainWrapper>
4949
{curTab === TAB.BASIC_INFO && <BasicInfo />}
5050
{curTab === TAB.UI && <UI settings={uiSettings} touched={touched} />}

0 commit comments

Comments
 (0)