mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-20 08:39:43 -06:00
Refactored the code and addressed the comments.
This commit is contained in:
@@ -1,22 +1,54 @@
|
||||
import { Box, Button, Typography } from '@mui/material';
|
||||
import { Box, Typography, useTheme } from '@mui/material';
|
||||
import Button from '../Button';
|
||||
|
||||
/**
|
||||
* Integrations component
|
||||
* @returns {JSX.Element}
|
||||
*/
|
||||
const Integrations = () => {
|
||||
const theme = useTheme();
|
||||
|
||||
return (
|
||||
<Box display="flex" alignItems="center" p={2} border={1} borderRadius={2}>
|
||||
<Box component="img" src="https://via.placeholder.com/100" alt="Placeholder" width={100} height={100} />
|
||||
<Box
|
||||
display="flex"
|
||||
alignItems="center"
|
||||
p={theme.spacing(2)}
|
||||
border={1}
|
||||
borderColor={theme.palette.divider}
|
||||
borderRadius={theme.shape.borderRadius}
|
||||
>
|
||||
<Box
|
||||
component="img"
|
||||
src="https://via.placeholder.com/100"
|
||||
alt="Placeholder"
|
||||
width={100}
|
||||
height={100}
|
||||
/>
|
||||
|
||||
<Box flex={1} mx={2} display="flex" flexDirection="column" alignItems="flex-start">
|
||||
<Box
|
||||
flex={1}
|
||||
mx={theme.spacing(2)}
|
||||
display="flex"
|
||||
flexDirection="column"
|
||||
alignItems="flex-start"
|
||||
>
|
||||
<Typography variant="h6" component="div">
|
||||
Header
|
||||
</Typography>
|
||||
<Typography variant="body1" component="div" sx={{ maxWidth: '300px', wordWrap: 'break-word', textAlign: 'left' }}>
|
||||
<Typography
|
||||
variant="body1"
|
||||
component="div"
|
||||
sx={{
|
||||
maxWidth: '300px',
|
||||
wordWrap: 'break-word',
|
||||
textAlign: 'left'
|
||||
}}
|
||||
>
|
||||
This is a paragraph that provides more detail about the header.
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<Button variant="contained" color="primary" sx={{ minWidth: '120px', minHeight: '45px' }}>
|
||||
Click Me
|
||||
</Button>
|
||||
<Button label="Click Me" level="primary" />
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user