Commit 8fb57169 by G

moved card component to the bases component folder

parent 39a45f81
import { type BoxProps, type VariantProps, createRestyleComponent } from "@shopify/restyle";
import type { Theme } from "@themes/Theme";
import { cardVariants } from "@themes/Variants";
import Box from "./bases/Box";
const Card = createRestyleComponent<
VariantProps<Theme, "cardVariants"> &
BoxProps<Theme> & {
children: React.ReactNode;
},
Theme
>([cardVariants], Box);
export default Card;
import type { Theme } from "@/themes/Theme";
import Box from "@re-box";
import { type VariantProps, createRestyleComponent, createVariant } from "@shopify/restyle";
const Card = createRestyleComponent<
VariantProps<Theme, "cardVariants"> & React.ComponentProps<typeof Box>,
Theme
>(
[
createVariant({
themeKey: "cardVariants",
defaults: {
margin: {
phone: "s",
tablet: "m",
},
backgroundColor: "red",
},
}),
],
Box,
);
export default Card;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment