1
- import React from " react" ;
2
- import PropTypes from " prop-types" ;
3
- import { Card } from " react-bootstrap" ;
4
- import NextLink from " ../../components/NextLink/NextLink" ;
5
- import LinkedButton from " ../LinkedButton/LinkedButton" ;
1
+ import React from ' react'
2
+ import PropTypes from ' prop-types'
3
+ import { Card } from ' react-bootstrap'
4
+ import NextLink from ' ../../components/NextLink/NextLink'
5
+ import LinkedButton from ' ../LinkedButton/LinkedButton'
6
6
7
7
const CardBody = ( {
8
8
buttonLink,
@@ -27,11 +27,11 @@ const CardBody = ({
27
27
< div className = { orientation === "horizontal" ? "me-2" : "" } >
28
28
< Card . Title >
29
29
{ ( withTitleLink ) && (
30
- < NextLink
31
- text = { name }
32
- path = { { pathname : titleLink , query : { id } } }
33
- addClass = "text-decoration-none link-hover"
34
- /> ) }
30
+ < NextLink
31
+ text = { name }
32
+ path = { { pathname : titleLink , query : { id } } }
33
+ addClass = "text-decoration-none link-hover"
34
+ /> ) }
35
35
{ ( ! withTitleLink ) && (
36
36
name
37
37
) }
@@ -79,20 +79,20 @@ CardBody.propTypes = {
79
79
name : PropTypes . string . isRequired ,
80
80
slug : PropTypes . string ,
81
81
} ) ,
82
- orientation : PropTypes . oneOf ( [ " horizontal" , " vertical" ] ) ,
82
+ orientation : PropTypes . oneOf ( [ ' horizontal' , ' vertical' ] ) ,
83
83
titleLink : PropTypes . string ,
84
84
withButtonLink : PropTypes . bool ,
85
85
withTitleLink : PropTypes . bool ,
86
86
} ;
87
87
88
88
CardBody . defaultProps = {
89
- buttonLink : "" ,
89
+ buttonLink : '' ,
90
90
buttonProps : LinkedButton . defaultProps ,
91
91
item : {
92
- description : "" ,
92
+ description : '' ,
93
93
} ,
94
- orientation : " vertical" ,
95
- titleLink : "" ,
94
+ orientation : ' vertical' ,
95
+ titleLink : '' ,
96
96
withButtonLink : false ,
97
97
withTitleLink : false ,
98
98
} ;
0 commit comments