Skip to content

Commit

Permalink
AdaptiveGridTwoEqualItems is part of the configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitardanailov committed Jun 6, 2024
1 parent b0a1a3f commit 03ab237
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions apps/website/src/app/demos/dashboard-trade/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {useState} from 'react'

import Collapse from '@mui/material/Collapse'

import GridTwoColumns from '@/components/Grid/TwoColumns'
import AdaptiveGridTwoEqualItems from '@/components/AdaptiveGrid/TwoEqualItems'

import TableBody from '@/components/Coingecko/TableBody'
import TableHeader from '@/components/Coingecko/TableHeader'
Expand Down Expand Up @@ -43,8 +43,8 @@ const Content = () => {
return (
<>
<Slogan>Coingecko portfolio fetcher</Slogan>
<GridTwoColumns
LeftBox={
<AdaptiveGridTwoEqualItems
ItemA={
<>
<div>Technologies: {stack.join(', ')}</div>
<p>
Expand All @@ -53,7 +53,7 @@ const Content = () => {
</p>
</>
}
RightBox={<PageHeaderContainer apiRequest={apiRequest} />}
ItemB={<PageHeaderContainer apiRequest={apiRequest} />}
/>

<Collapse in={priceListNotifacationIsVisible}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import Box from '@/styled-components/Grid/Mobile/HFlexBox'
import styled from 'styled-components'

export interface Props {
LeftBox: JSX.Element
RightBox: JSX.Element
ItemA: JSX.Element
ItemB: JSX.Element
}

const BoxWrapper = styled.div`
Expand All @@ -20,13 +20,13 @@ const BoxWrapper = styled.div`
}
`

const GridTwoColumns: FC<Props> = ({LeftBox, RightBox}) => {
const AdaptiveGridTwoEqualItems: FC<Props> = ({ItemA, ItemB}) => {
return (
<Box>
<BoxWrapper>{LeftBox}</BoxWrapper>
<BoxWrapper>{RightBox}</BoxWrapper>
<BoxWrapper>{ItemA}</BoxWrapper>
<BoxWrapper>{ItemB}</BoxWrapper>
</Box>
)
}

export default GridTwoColumns
export default AdaptiveGridTwoEqualItems

0 comments on commit 03ab237

Please sign in to comment.