-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into wallet-landing-page
- Loading branch information
Showing
1 changed file
with
16 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import { type BaseBlock } from '@/components/Home/types' | ||
import { Box, Typography } from '@mui/material' | ||
import { Typography } from '@mui/material' | ||
import IconCarouselElement, { type Carousel } from './IconCarouselElement' | ||
|
||
const TitleSlidingIcons = ({ title, text, icons, reverse = false }: BaseBlock & Carousel) => { | ||
return ( | ||
<> | ||
<Box display="flex" flexDirection="column" alignItems="center" justifyContent="center"> | ||
<Typography variant="h3">{title}</Typography> | ||
{text && ( | ||
<Typography color="primary.light" marginTop={4}> | ||
{text} | ||
</Typography> | ||
)} | ||
</Box> | ||
<IconCarouselElement icons={icons} reverse={reverse} /> | ||
</> | ||
) | ||
} | ||
const TitleSlidingIcons = ({ title, text, icons, reverse = false }: BaseBlock & Carousel) => ( | ||
<> | ||
<Typography variant="h3" textAlign="center"> | ||
{title} | ||
</Typography> | ||
|
||
{text && ( | ||
<Typography color="primary.light" textAlign="center" marginTop={4}> | ||
{text} | ||
</Typography> | ||
)} | ||
|
||
<IconCarouselElement icons={icons} reverse={reverse} /> | ||
</> | ||
) | ||
|
||
export default TitleSlidingIcons |