-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed popular projects section, carousel out of place
- Loading branch information
Showing
3 changed files
with
54 additions
and
21 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from 'react'; | ||
import { View, ViewProps } from 'react-native'; | ||
import { styled } from 'nativewind'; | ||
import { cva, type VariantProps } from 'class-variance-authority'; | ||
|
||
const StyledView = styled(View); | ||
|
||
const cardVariants = cva('bg-white rounded-[16px]', { | ||
variants: {}, | ||
defaultVariants: {}, | ||
}); | ||
|
||
interface CardProps extends ViewProps, VariantProps<typeof cardVariants> { | ||
children: React.ReactNode; | ||
} | ||
|
||
export function NoPaddingCard({ | ||
children, | ||
className, | ||
...props | ||
}: CardProps & { className?: string }) { | ||
return ( | ||
<StyledView className={`${cardVariants()} ${className || ''}`} {...props}> | ||
{children} | ||
</StyledView> | ||
); | ||
} | ||
|
||
export default NoPaddingCard; |
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