Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
reiji-h committed Aug 13, 2024
1 parent eded44b commit 0c37e3c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/presentation/src/client/components/RichSlideSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,26 @@ const OriginalRichSlideSection = React.memo((props: RichSlideSectionProps): JSX.
);
});

export const RichSlideSection = React.memo((props: RichSlideSectionProps): JSX.Element => {

const RichSlideSectionNoMemorized = (props: RichSlideSectionProps): JSX.Element => {
const { children } = props;

return (
<OriginalRichSlideSection>
{children}
</OriginalRichSlideSection>
);
}) as typeof RichSlideSection;
};
export const RichSlideSection = React.memo(RichSlideSectionNoMemorized) as typeof RichSlideSectionNoMemorized;


export const PresentationRichSlideSection = React.memo((props: RichSlideSectionProps): JSX.Element => {
const PresentationRichSlideSectionNoMemorized = (props: RichSlideSectionProps): JSX.Element => {
const { children } = props;

return (
<OriginalRichSlideSection presentation>
{children}
</OriginalRichSlideSection>
);
}) as typeof PresentationRichSlideSection;
};
export const PresentationRichSlideSection = React.memo(PresentationRichSlideSectionNoMemorized) as typeof PresentationRichSlideSectionNoMemorized;

0 comments on commit 0c37e3c

Please sign in to comment.