Skip to content

Commit

Permalink
fix: fix hydration error
Browse files Browse the repository at this point in the history
  • Loading branch information
Temple2001 committed Sep 10, 2024
1 parent 79d781e commit 081c453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MDXComponents/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const mdxComponents = (post: Post): MDXComponents => ({
</>
),

p: ({ children }) => <p className={styles.p}>{children}</p>,
p: ({ children }) => <div className={styles.p}>{children}</div>,

img: (props) => {
let imgSrc: string;
Expand All @@ -77,7 +77,7 @@ export const mdxComponents = (post: Post): MDXComponents => ({
loading="lazy"
className={styles.img}
/>
<p className={styles.description}>{props.alt}</p>
<div className={styles.description}>{props.alt}</div>
</div>
);
},
Expand Down

0 comments on commit 081c453

Please sign in to comment.