Skip to content

Commit

Permalink
feat(base-header): change Card component to div and remove maxWidth h…
Browse files Browse the repository at this point in the history
…eader
  • Loading branch information
chornos13 committed Jan 31, 2021
1 parent 82ff2bb commit 5805f81
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/components/BaseHeader/BaseHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React, { ReactNode } from 'react'
import Content, { ContentProps } from 'components/Content/Content'
import cssHeader from 'layouts/containers/Public/Header/Header.module.scss'
import { Card, Row } from 'antd'
import { Row } from 'antd'
import cx from 'shortcuts/cx'

interface BaseHeaderProps extends ContentProps {
children?: ReactNode
style?: CSSStyleDeclaration & any
style?: CSSStyleDeclaration | any
absolute?: boolean
}

Expand Down Expand Up @@ -35,13 +35,12 @@ function BaseHeader(props: BaseHeaderProps) {
position: 'absolute',
top: 0,
width: '100%',
maxWidth: 576,
}
: {}),
...styleContainer,
}}
>
<Card bodyStyle={{ padding: 0 }}>
<div>
<Row
justify={'space-between'}
align={'middle'}
Expand All @@ -52,7 +51,7 @@ function BaseHeader(props: BaseHeaderProps) {
>
{children}
</Row>
</Card>
</div>
</Content>
)
}
Expand Down

0 comments on commit 5805f81

Please sign in to comment.