Html component update
This commit is contained in:
1 parent
f874de73b9
commit
6a86de6c84
6 files changed
+12
-11
No files matched your search
@@ -1,7 +0,0 @@
|
||||
import React from 'react'
|
||||
|
||||
export default function Html(props) {
|
||||
return (
|
||||
<div dangerouslySetInnerHTML={{ __html: props.html }} />
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export type HtmlProps = {
|
||||
html: string
|
||||
}
|
||||
|
||||
export const Html: React.FC<HtmlProps> = props => (
|
||||
<div dangerouslySetInnerHTML={{ __html: props.html }} />
|
||||
)
|
||||
@@ -1,9 +1,10 @@
|
||||
import * as React from 'react'
|
||||
import { Share } from '../Share'
|
||||
import Html from '../Html'
|
||||
import { Html } from '../Html'
|
||||
|
||||
export interface IPageProps {
|
||||
showSocialShare: boolean
|
||||
children: string
|
||||
}
|
||||
|
||||
export const Page: React.FC<IPageProps> = props => (
|
||||
|
||||
Reference in new issue
Block a user