Skip to content

Commit

Permalink
CampaignDetails.tsx: Remove unnnecessary Box component
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Nov 13, 2023
1 parent 566645a commit da26cf1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/components/client/campaigns/CampaignDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { CampaignResponse } from 'gql/campaigns'

import 'react-quill/dist/quill.bubble.css'

import { Box, Divider, Grid, IconButton, Tooltip, Typography } from '@mui/material'
import { Divider, Grid, IconButton, Tooltip, Typography } from '@mui/material'
import SecurityIcon from '@mui/icons-material/Security'
import { styled } from '@mui/material/styles'

Expand Down Expand Up @@ -210,16 +210,14 @@ const CampaignFinanceSummary = ({ campaign, expenses }: CampaignFinanceProps) =>
<Typography variant="h5" fontWeight={500}>
Събрана сума: {moneyPublic(total)}
</Typography>
<Box flexDirection={'row'} display={'flex'} alignItems={'center'}>
<Typography className={classes.financeSummary}>
Налични: {moneyPublic(campaign.summary.currentAmount)}
</Typography>
<Typography className={classes.financeSummary}>
Налични: {moneyPublic(campaign.summary.currentAmount)}
<Tooltip enterTouchDelay={0} title="Средства налични по сметката на Podkrepi.bg">
<IconButton size="small" color="primary">
<InfoOutlined fontSize="small" />
</IconButton>
</Tooltip>
</Box>
</Typography>
<Typography className={classes.financeSummary}>
Гарантирани: {moneyPublic(campaign.summary.guaranteedAmount)}
<Tooltip
Expand Down

0 comments on commit da26cf1

Please sign in to comment.