Html component update

This commit is contained in:
tmshv committed 2020-02-15 06:40:47 +03:00
1 parent f874de73b9
commit 6a86de6c84
6 files changed
+12 -11

No files matched your search

-7
View File
@@ -1,7 +0,0 @@
import React from 'react'
export default function Html(props) {
return (
<div dangerouslySetInnerHTML={{ __html: props.html }} />
)
}
+7
View File
@@ -0,0 +1,7 @@
export type HtmlProps = {
html: string
}
export const Html: React.FC<HtmlProps> = props => (
<div dangerouslySetInnerHTML={{ __html: props.html }} />
)
+2 -1
View File
@@ -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 => (