mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-31 23:16:54 +00:00
async theme
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
|
||||
/**
|
||||
* 主题文件被加载出之前的占位符
|
||||
* @returns
|
||||
*/
|
||||
const Loading = () => {
|
||||
return <div className="w-screen h-screen flex justify-center items-center">
|
||||
<h1>Loading... <i className='ml-2 fas fa-spinner animate-spin' /></h1>
|
||||
</div>
|
||||
const Loading = (props) => {
|
||||
const { current } = props
|
||||
|
||||
return <>
|
||||
{current || <div className="w-screen h-screen flex justify-center items-center">
|
||||
<h1>Loading... <i className='ml-2 fas fa-spinner animate-spin' /></h1>
|
||||
</div>}
|
||||
</>
|
||||
}
|
||||
export default Loading
|
||||
|
||||
Reference in New Issue
Block a user