Skip to content

Commit 7fdbb19

Browse files
authored
chore(condo): refactor PropertyReportCard.tsx (#5910)
1 parent 8d97731 commit 7fdbb19

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

apps/condo/domains/property/components/PropertyReportCard.tsx

+8-9
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ const ImageWrapper = styled.div`
6767
`
6868

6969
const PropertyBalanceContentWrapper = styled.div`
70-
padding: 90px 0;
7170
display: flex;
7271
text-align: center;
7372
justify-content: center;
@@ -76,6 +75,9 @@ const PropertyBalanceContentWrapper = styled.div`
7675
`
7776

7877
const PropertyCardCss = css`
78+
width: 100%;
79+
margin-top: 40px;
80+
7981
&, & .condo-card-body {
8082
height: 100%;
8183
}
@@ -95,18 +97,15 @@ const PropertyCardBalanceContent: IPropertyCardBalanceContent = ({ bankAccount,
9597
style: 'currency',
9698
currency: bankAccount.currencyCode,
9799
})
98-
const ButtonTitle = intl.formatMessage({ id: 'pages.condo.property.id.propertyReportBalance.buttonTitle' })
99100

100101
return (
101102
<>
102-
<Typography.Title level={3}>{BalanceTitle}</Typography.Title>
103103
<PropertyBalanceContentWrapper>
104-
<Space direction='vertical' size={20}>
105-
<Space direction='vertical' size={12}>
106-
<Typography.Title level={1}>{BalanceValue}</Typography.Title>
107-
<Typography.Text size='small' type='secondary'>{BalanceDescription}</Typography.Text>
108-
</Space>
109-
<Button type='secondary' onClick={clickCallback}>{ButtonTitle}</Button>
104+
<Space direction='vertical' size={4}>
105+
<Typography.Text>
106+
<Typography.Link onClick={clickCallback}>{BalanceTitle} {BalanceValue}</Typography.Link>
107+
<Typography.Text type='secondary'> ({BalanceDescription})</Typography.Text>
108+
</Typography.Text>
110109
</Space>
111110
</PropertyBalanceContentWrapper>
112111
</>

apps/condo/pages/property/[id]/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import { Property } from '@condo/domains/property/utils/clientSchema'
3232

3333
const PROPERTY_PAGE_CONTENT_ROW_GUTTER: RowProps['gutter'] = [12, 40]
3434
const PROPERTY_PAGE_CONTENT_ROW_INFO_BLOCK_GUTTER: RowProps['gutter'] = [52, 24]
35-
const PROPERTY_PAGE_CONTENT_ROW_INFO_BLOCK_STYLE: React.CSSProperties = { marginTop: '80px', marginRight: '-20px' }
35+
const PROPERTY_PAGE_CONTENT_ROW_INFO_BLOCK_STYLE: React.CSSProperties = { marginTop: '60px', marginRight: '-20px' }
3636
const PROPERTY_PAGE_CONTENT_ROW_STYLE: React.CSSProperties = { marginTop: '60px' }
3737

3838
export const PropertyPageContent = ({ property, role = null, organizationId = null }) => {

0 commit comments

Comments
 (0)