MadCcc
2 years ago
committed by
GitHub
53 changed files with 274 additions and 279 deletions
@ -1 +1,3 @@ |
|||
export { default } from '../index/index'; |
|||
import Homepage from '../index/index'; |
|||
|
|||
export default Homepage; |
|||
|
@ -1 +1,3 @@ |
|||
export { default } from '../theme-editor/index'; |
|||
import ThemeEditor from '../theme-editor'; |
|||
|
|||
export default ThemeEditor; |
|||
|
@ -1,8 +1,8 @@ |
|||
import React from 'react'; |
|||
|
|||
const APITable: React.FC = () => { |
|||
const APITable: React.FC = () => ( |
|||
// TODO: implement api table, depend on the new markdown data structure passed
|
|||
return <>API Table</>; |
|||
}; |
|||
<>API Table</> |
|||
); |
|||
|
|||
export default APITable; |
|||
|
@ -1,8 +1,10 @@ |
|||
import { Alert, AlertProps } from 'antd'; |
|||
import React, { FC } from 'react'; |
|||
import type { AlertProps } from 'antd'; |
|||
import { Alert } from 'antd'; |
|||
import type { FC } from 'react'; |
|||
import React from 'react'; |
|||
|
|||
const MdAlert: FC<AlertProps> = ({ style, ...props }) => { |
|||
return <Alert {...props} style={{ margin: '24px 0', ...style }} />; |
|||
}; |
|||
const MdAlert: FC<AlertProps> = ({ style, ...props }) => ( |
|||
<Alert {...props} style={{ margin: '24px 0', ...style }} /> |
|||
); |
|||
|
|||
export default MdAlert; |
|||
|
@ -1,16 +1,15 @@ |
|||
import React, { FC, PropsWithChildren } from 'react'; |
|||
import type { FC, PropsWithChildren } from 'react'; |
|||
import React from 'react'; |
|||
import Sidebar from '../../slots/Sidebar'; |
|||
import Content from '../../slots/Content'; |
|||
import CommonHelmet from '../../common/CommonHelmet'; |
|||
|
|||
const SidebarLayout: FC<PropsWithChildren<{}>> = ({ children }) => { |
|||
return ( |
|||
<main style={{ display: 'flex', marginTop: 40 }}> |
|||
<CommonHelmet /> |
|||
<Sidebar /> |
|||
<Content>{children}</Content> |
|||
</main> |
|||
); |
|||
}; |
|||
const SidebarLayout: FC<PropsWithChildren<{}>> = ({ children }) => ( |
|||
<main style={{ display: 'flex', marginTop: 40 }}> |
|||
<CommonHelmet /> |
|||
<Sidebar /> |
|||
<Content>{children}</Content> |
|||
</main> |
|||
); |
|||
|
|||
export default SidebarLayout; |
|||
|
Loading…
Reference in new issue