Skip to content

Commit 21f5a1f

Browse files
committed
refactor: use blockquote element
1 parent 417ca82 commit 21f5a1f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

components/Article/BlockQuote/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22

33
exports[`BlockQuote component should render correctly 1`] = `
44
<div>
5-
<div
5+
<blockquote
66
class="blockQuote"
77
/>
88
</div>
99
`;
1010

1111
exports[`BlockQuote component should support passing children into the component 1`] = `
1212
<div>
13-
<div
13+
<blockquote
1414
class="blockQuote"
1515
>
1616
This is a block quote
17-
</div>
17+
</blockquote>
1818
</div>
1919
`;
2020

2121
exports[`BlockQuote component should support passing multiple children into the component 1`] = `
2222
<div>
23-
<div
23+
<blockquote
2424
class="blockQuote"
2525
>
2626
<p>
@@ -29,6 +29,6 @@ exports[`BlockQuote component should support passing multiple children into the
2929
<p>
3030
This is a block quote
3131
</p>
32-
</div>
32+
</blockquote>
3333
</div>
3434
`;

components/Article/BlockQuote/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { PropsWithChildren } from 'react';
22
import styles from './index.module.scss';
33

44
const BlockQuote = ({ children }: PropsWithChildren) => (
5-
<div className={styles.blockQuote}>{children}</div>
5+
<blockquote className={styles.blockQuote}>{children}</blockquote>
66
);
77

88
export default BlockQuote;

0 commit comments

Comments
 (0)