Skip to content

Commit

Permalink
feat(domain/detail): feat: change children rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
JSH-data committed Feb 3, 2024
1 parent c0e60af commit 4e2ef8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 2 additions & 4 deletions components/domains/detail/tab/InfoTab.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import type { ReactNode } from "react";

export default function InfoTab({ children }: { children?: ReactNode }) {
return <>{children}</>;
export default function InfoTab({ children }: { children: string }) {
return <div dangerouslySetInnerHTML={{ __html: children }}></div>;
}
6 changes: 2 additions & 4 deletions components/domains/detail/tab/LocationTab.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import type { ReactNode } from "react";

export default function LocationTab({ children }: { children?: ReactNode }) {
return <>{children}</>;
export default function LocationTab({ children }: { children: string }) {
return <div dangerouslySetInnerHTML={{ __html: children }}></div>;
}
6 changes: 2 additions & 4 deletions components/domains/detail/tab/ReserveAndCancelTab.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import type { ReactNode } from "react";

export default function ReserveAndCancelTab({
children,
}: {
children?: ReactNode;
children: string;
}) {
return <>{children}</>;
return <div dangerouslySetInnerHTML={{ __html: children }}></div>;
}

0 comments on commit 4e2ef8a

Please sign in to comment.