mirror of
https://github.com/SomboChea/ui
synced 2026-01-18 00:56:00 +07:00
initial commit
This commit is contained in:
13
src/components/Readme/index.js
Normal file
13
src/components/Readme/index.js
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @prettier
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import 'github-markdown-css';
|
||||
|
||||
import { IProps } from './types';
|
||||
|
||||
const Readme = ({ description }: IProps) => <div className={'markdown-body'} dangerouslySetInnerHTML={{ __html: description }} />;
|
||||
|
||||
export default Readme;
|
||||
8
src/components/Readme/types.js
Normal file
8
src/components/Readme/types.js
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* @prettier
|
||||
* @flow
|
||||
*/
|
||||
|
||||
export interface IProps {
|
||||
description: string;
|
||||
}
|
||||
Reference in New Issue
Block a user