-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from advanced-computer-lab-2023/ui-fixes
UI fixes
- Loading branch information
Showing
15 changed files
with
501 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 54 additions & 35 deletions
89
client/src/pages/DoctorAddAvailableSlots/AvailableSlotsTable.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { Typography } from '@mui/material'; | ||
const DoctorPrice = ({ | ||
priceBeforeDiscount, | ||
priceAfterDiscount, | ||
margin | ||
}) => { | ||
return ( | ||
<> | ||
{ | ||
priceAfterDiscount < priceBeforeDiscount ? ( | ||
<div style={{ display: 'flex' }}> | ||
<Typography | ||
variant="h5" | ||
color="text.secondary" | ||
sx={{ textDecoration: 'line-through' }} | ||
> | ||
{`$${priceBeforeDiscount}`} | ||
</Typography> | ||
<Typography | ||
variant="h4" | ||
color="text.primary" | ||
sx={{ marginLeft: `${margin}%` }} | ||
> | ||
{`$${priceAfterDiscount}`} | ||
</Typography> | ||
</div> | ||
) : ( | ||
<Typography | ||
variant="h4" | ||
color="text.primary" | ||
> | ||
{`$${priceAfterDiscount}`} | ||
</Typography> | ||
) | ||
} | ||
</> | ||
); | ||
}; | ||
|
||
export default DoctorPrice; |
Oops, something went wrong.