@@ -131,7 +131,7 @@ export type Props = $Omit<React.ComponentProps<typeof Surface>, 'mode'> & {
131
131
* export default MyComponent;
132
132
* ```
133
133
*/
134
- const CardComponent = (
134
+ const Card = (
135
135
{
136
136
elevation : cardElevation = 1 ,
137
137
delayLongPress,
@@ -330,24 +330,24 @@ const CardComponent = (
330
330
) ;
331
331
} ;
332
332
333
- const Component = forwardRef ( CardComponent ) ;
333
+ const Component = forwardRef ( Card ) ;
334
334
Component . displayName = 'Card' ;
335
335
336
- const Card = Component as typeof Component & {
336
+ const CardComponent = Component as typeof Component & {
337
337
Content : typeof CardContent ;
338
338
Actions : typeof CardActions ;
339
339
Cover : typeof CardCover ;
340
340
Title : typeof CardTitle ;
341
341
} ;
342
342
343
343
// @component ./CardContent.tsx
344
- Card . Content = CardContent ;
344
+ CardComponent . Content = CardContent ;
345
345
// @component ./CardActions.tsx
346
- Card . Actions = CardActions ;
346
+ CardComponent . Actions = CardActions ;
347
347
// @component ./CardCover.tsx
348
- Card . Cover = CardCover ;
348
+ CardComponent . Cover = CardCover ;
349
349
// @component ./CardTitle.tsx
350
- Card . Title = CardTitle ;
350
+ CardComponent . Title = CardTitle ;
351
351
352
352
const styles = StyleSheet . create ( {
353
353
innerContainer : {
@@ -365,4 +365,4 @@ const styles = StyleSheet.create({
365
365
} ,
366
366
} ) ;
367
367
368
- export default Card ;
368
+ export default CardComponent ;
0 commit comments