Skip to content

Commit

Permalink
fix(components): Remove unused component props
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Jung <[email protected]>
  • Loading branch information
nderjung committed Feb 1, 2024
1 parent 2a7fe42 commit 17a32c3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/components/kraftcloud-ad.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ import { Box, VStack, Heading, Flex, chakra } from '@chakra-ui/react';
import { CompanyKraftCloud } from 'components/logos';
import { t } from 'utils/i18n';

export const KraftCloudAd = ({ title, url, children }: {
title: { string }
url: { string }
children: React.ReactNode
}) => {
export const KraftCloudAd = () => {
return (
<VStack
w='full'
Expand All @@ -33,10 +29,10 @@ export const KraftCloudAd = ({ title, url, children }: {
</Box>
</Flex>
<Heading size='md'>
{title || t('component.kraftcloud-strip.heading')}
{t('component.kraftcloud-strip.heading')}
</Heading>
<Box opacity={0.7}>
{children || t('component.kraftcloud-strip.description')}
{t('component.kraftcloud-strip.description')}
</Box>
<chakra.button
mt={{ base: '6', md: 0 }}
Expand Down

0 comments on commit 17a32c3

Please sign in to comment.