Skip to content

Commit 6670a65

Browse files
committed
feat: uat changes
1 parent 9751436 commit 6670a65

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/components/common/SidePanel/SidePanelContent.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { MouseEvent } from 'react'
2-
31
import {
42
Button,
53
ButtonStyleType,
@@ -89,12 +87,8 @@ export const SidePanelContent = ({ onClose, setSidePanelConfig, sidePanelConfig
8987
{TABS_CONFIG.map(({ label, iconName, id }) => {
9088
const isSelected = tab === id
9189

92-
const handleTabClick = ({
93-
currentTarget: {
94-
dataset: { config },
95-
},
96-
}: MouseEvent<HTMLDivElement>) => {
97-
setSidePanelConfig(() => JSON.parse(config))
90+
const handleTabClick = () => {
91+
setSidePanelConfig((prev) => ({ ...prev, state: id }))
9892
}
9993

10094
return (

src/components/common/SidePanel/SidePanelDocumentation.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
ButtonStyleType,
77
ButtonVariantType,
88
ComponentSizeType,
9+
DOCUMENTATION,
910
Icon,
1011
useMainContext,
1112
useTheme,
@@ -17,7 +18,7 @@ export const SidePanelDocumentation = ({ SidePanelHeaderActions }: SidePanelCont
1718
// HOOKS
1819
const { appTheme } = useTheme()
1920
const {
20-
sidePanelConfig: { docLink },
21+
sidePanelConfig: { docLink = DOCUMENTATION.DOC_HOME_PAGE },
2122
} = useMainContext()
2223

2324
// REFS

0 commit comments

Comments
 (0)