Skip to content

Commit

Permalink
Merge branch 'wallet-landing-page' into wallet-feature-cards
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoSoaress authored Oct 31, 2024
2 parents 404789d + 58bb207 commit 725c3f5
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 725c3f5

Please sign in to comment.