@@ -5,6 +5,7 @@ import { GroupCardElement } from './GroupCardElement';
5
5
import { GroupCardFooter } from './GroupCardFooter' ;
6
6
import { Heading2 , Paragraph } from '@sb1/ffe-core-react' ;
7
7
import type { StoryObj , Meta } from '@storybook/react' ;
8
+ import { CardRenderProps } from '../types' ;
8
9
9
10
const meta : Meta < typeof GroupCard > = {
10
11
title : 'Komponenter/Cards/GroupCard' ,
@@ -27,7 +28,7 @@ export const Standard: Story = {
27
28
< GroupCardElement > Dette er et element i GroupCard</ GroupCardElement >
28
29
< GroupCardElement > Dette er et element i GroupCard</ GroupCardElement >
29
30
< GroupCardFooter >
30
- { ( { CardAction } ) => (
31
+ { ( { CardAction } : CardRenderProps ) => (
31
32
< CardAction href = "https://design.sparebank1.no" >
32
33
Vis mer
33
34
</ CardAction >
@@ -83,7 +84,13 @@ export const WithCardAction: Story = {
83
84
< Heading2 lookLike = { 5 } > Tittel på gruppe</ Heading2 >
84
85
</ GroupCardTitle >
85
86
< GroupCardElement >
86
- { ( { CardAction, CardName, Title, Subtext, Text } ) => (
87
+ { ( {
88
+ CardAction,
89
+ CardName,
90
+ Title,
91
+ Subtext,
92
+ Text,
93
+ } : CardRenderProps ) => (
87
94
< >
88
95
< CardName > Kortnavn</ CardName >
89
96
< Title >
@@ -97,7 +104,7 @@ export const WithCardAction: Story = {
97
104
) }
98
105
</ GroupCardElement >
99
106
< GroupCardElement >
100
- { ( { CardAction } ) => (
107
+ { ( { CardAction } : CardRenderProps ) => (
101
108
< >
102
109
< Heading2 >
103
110
< CardAction as = "button" > Knapp</ CardAction >
@@ -107,7 +114,7 @@ export const WithCardAction: Story = {
107
114
) }
108
115
</ GroupCardElement >
109
116
< GroupCardElement >
110
- { ( { CardAction } ) => (
117
+ { ( { CardAction } : CardRenderProps ) => (
111
118
< >
112
119
< Heading2 >
113
120
< CardAction href = "https://design.sparebank1.no" >
@@ -119,7 +126,7 @@ export const WithCardAction: Story = {
119
126
) }
120
127
</ GroupCardElement >
121
128
< GroupCardFooter >
122
- { ( { CardAction } ) => (
129
+ { ( { CardAction } : CardRenderProps ) => (
123
130
< CardAction href = "https://design.sparebank1.no" >
124
131
Vis mer
125
132
</ CardAction >
0 commit comments