diff --git a/app/web/src/components/IdeSideBar/sidebarConfig.tsx b/app/web/src/components/IdeSideBar/sidebarConfig.tsx index 2faed46..a4bfed4 100644 --- a/app/web/src/components/IdeSideBar/sidebarConfig.tsx +++ b/app/web/src/components/IdeSideBar/sidebarConfig.tsx @@ -1,11 +1,11 @@ -import { ReactFragment, ReactNode, useEffect, useReducer, useState } from 'react' +import React, { ReactNode } from 'react' import { SvgNames } from 'src/components/Svg/Svg' interface SidebarConfigType { name: string, icon: SvgNames, disabled: boolean, - panel: ReactFragment | null, + panel: ReactNode | null, } export const sidebarTopConfig : SidebarConfigType[] = [ @@ -67,14 +67,7 @@ export const sidebarBottomConfig : SidebarConfigType[] = [ name: 'Settings', icon: 'gear', disabled: false, - panel:
- { settingsConfig.map(item => ( -
- { item.title } - { item.content } -
- ))} -
, + panel: , }, ] @@ -84,12 +77,11 @@ export const sidebarCombinedConfig = [ ] function SettingsMenu() { - console.log('hello?', settingsConfig) return ( -
+
{ settingsConfig.map(item => (
- { item.title } + { item.title } { item.content }
))} diff --git a/app/web/src/index.css b/app/web/src/index.css index 0e17ea0..a536eac 100644 --- a/app/web/src/index.css +++ b/app/web/src/index.css @@ -32,7 +32,7 @@ @layer components { .tabToggle { - @apply text-ch-gray-300 p-3 mb-3 flex justify-center; + @apply text-ch-gray-300 p-3 mb-1 flex justify-center; } .tabToggle.active { @apply bg-ch-pink-800 text-ch-pink-300 bg-opacity-30;