@@ -15,13 +15,6 @@ import hasTouchHandler from '../../utils/hasTouchHandler';
1515import { splitStyles } from '../../utils/splitStyles' ;
1616import Surface from '../Surface' ;
1717
18- type CardComposition = {
19- Content : typeof CardContent ;
20- Actions : typeof CardActions ;
21- Cover : typeof CardCover ;
22- Title : typeof CardTitle ;
23- } ;
24-
2518type OutlinedCardProps = {
2619 mode : 'outlined' ;
2720 elevation ?: never ;
@@ -283,16 +276,14 @@ const Card = ({
283276
284277Card . displayName = 'Card' ;
285278
286- const CardComponent = Card as typeof Card & CardComposition ;
287-
288279// @component ./CardContent.tsx
289- CardComponent . Content = CardContent ;
280+ Card . Content = CardContent ;
290281// @component ./CardActions.tsx
291- CardComponent . Actions = CardActions ;
282+ Card . Actions = CardActions ;
292283// @component ./CardCover.tsx
293- CardComponent . Cover = CardCover ;
284+ Card . Cover = CardCover ;
294285// @component ./CardTitle.tsx
295- CardComponent . Title = CardTitle ;
286+ Card . Title = CardTitle ;
296287
297288const styles = StyleSheet . create ( {
298289 innerContainer : {
@@ -307,4 +298,4 @@ const styles = StyleSheet.create({
307298 } ,
308299} ) ;
309300
310- export default CardComponent ;
301+ export default Card ;
0 commit comments