Skip to content

Commit 7aecbb8

Browse files
Add cardProps
1 parent 8325a31 commit 7aecbb8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/react-components/push-notification.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Card, CardHeader, Heading, CardBody, Text } from "@chakra-ui/react";
1+
import { Card, CardHeader, Heading, CardBody, Text, CardProps } from "@chakra-ui/react";
22
import { PushNotification } from "../push-notification";
33

44
/**
@@ -8,7 +8,7 @@ import { PushNotification } from "../push-notification";
88
*/
99
export function PushNotification(param: PushNotificationOptions) {
1010
const {PushNotification} = param;
11-
return <Card>
11+
return <Card {...param.cardProps}>
1212
<CardHeader>
1313
<Heading>
1414
{
@@ -31,4 +31,5 @@ export interface PushNotificationOptions {
3131
* All PushNotification information
3232
*/
3333
PushNotification: PushNotification
34+
cardProps?: CardProps
3435
}

0 commit comments

Comments
 (0)