Skip to content

Commit e558374

Browse files
committed
fix: use div
1 parent 21f5a1f commit e558374

3 files changed

Lines changed: 66 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-
<blockquote
5+
<div
66
class="blockQuote"
77
/>
88
</div>
99
`;
1010

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

2121
exports[`BlockQuote component should support passing multiple children into the component 1`] = `
2222
<div>
23-
<blockquote
23+
<div
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-
</blockquote>
32+
</div>
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-
<blockquote className={styles.blockQuote}>{children}</blockquote>
5+
<div className={styles.blockQuote}>{children}</div>
66
);
77

88
export default BlockQuote;

package-lock.json

Lines changed: 60 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)