Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into wallet-landing-page
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoSoaress committed Oct 30, 2024
2 parents e8ad6bf + 53fa4e4 commit 58bb207
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/components/common/TitleSlidingIcons/index.tsx
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

0 comments on commit 58bb207

Please sign in to comment.