Skip to content

Commit

Permalink
fix: minor cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
kevkevinpal committed Oct 10, 2023
1 parent 178b648 commit c1d1e84
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
9 changes: 7 additions & 2 deletions src/components/App/Helper/TeachMe/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ export const TeachMeText = () => {
)}
{!hasTeachingInProgress ? (
<>
<Flex style={{ paddingLeft: '10px', paddingRight: '10px' }}>
<TeachMeAnswerFlex>
<Text>{teachMeAnswer}</Text>
</Flex>
</TeachMeAnswerFlex>
<AskQuestion />
</>
) : (
Expand All @@ -169,3 +169,8 @@ export const TeachMeText = () => {
}

const ButtonStyled = styled(Button)``

const TeachMeAnswerFlex = styled(Flex)`
padding-left: 10px;
padding-right: 10px;
`
2 changes: 1 addition & 1 deletion src/components/App/SecondarySidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Wrapper = styled(Flex)(({ theme }) => ({
background: colors.BG1,
height: '100vh',
padding: '16px 20px',
width: '110%',
width: '100%',
zIndex: 30,
display: 'flex',
[theme.breakpoints.up('sm')]: {
Expand Down
4 changes: 1 addition & 3 deletions src/components/App/SideBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import { Tab } from './Tab'
import { Trending } from './Trending'
import { TeachMe } from '../Helper/TeachMe'

import 'reactflow/dist/style.css'

export const MENU_WIDTH = 390

type Props = {
Expand Down Expand Up @@ -132,7 +130,7 @@ export const SideBar = ({ onSubmit }: Props) => {
<Slide direction="right" in={sidebarIsOpen} mountOnEnter unmountOnExit>
<Content onSubmit={onSubmit} subViewOpen={!!selectedNode} />
</Slide>
<SideBarSubView open={!!selectedNode || !!showTeachMe} />
<SideBarSubView open={(!!selectedNode && sidebarIsOpen) || !!showTeachMe} />
{!sidebarIsOpen && <Tab />}
</>
)
Expand Down

0 comments on commit c1d1e84

Please sign in to comment.