Skip to content

Commit 05f53b6

Browse files
LEARN AcademyLEARN Academy
authored andcommitted
minor changes
1 parent 0ca3a26 commit 05f53b6

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/compounds/Item/CardBody.jsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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'
66

77
const CardBody = ({
88
buttonLink,
@@ -27,11 +27,11 @@ const CardBody = ({
2727
<div className={orientation === "horizontal" ? "me-2" : ""}>
2828
<Card.Title >
2929
{(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+
/>)}
3535
{(!withTitleLink) && (
3636
name
3737
)}
@@ -79,20 +79,20 @@ CardBody.propTypes = {
7979
name: PropTypes.string.isRequired,
8080
slug: PropTypes.string,
8181
}),
82-
orientation: PropTypes.oneOf(["horizontal", "vertical"]),
82+
orientation: PropTypes.oneOf(['horizontal', 'vertical']),
8383
titleLink: PropTypes.string,
8484
withButtonLink: PropTypes.bool,
8585
withTitleLink: PropTypes.bool,
8686
};
8787

8888
CardBody.defaultProps = {
89-
buttonLink: "",
89+
buttonLink: '',
9090
buttonProps: LinkedButton.defaultProps,
9191
item: {
92-
description: "",
92+
description: '',
9393
},
94-
orientation: "vertical",
95-
titleLink: "",
94+
orientation: 'vertical',
95+
titleLink: '',
9696
withButtonLink: false,
9797
withTitleLink: false,
9898
};

0 commit comments

Comments
 (0)