Feature/add emoji to webapp (#345)

This commit is contained in:
crazywoola 2023-06-13 14:54:12 +08:00 • committed by GitHub
commit 433f8cb57e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 100 additions and 76 deletions

View file

@ -1,11 +1,11 @@
import React from 'react'
import './style.css'
interface ILoadingProps {
type ILoadingProps = {
type?: 'area' | 'app'
}
const Loading = (
{ type = 'area' }: ILoadingProps = { type: 'area' }
{ type = 'area' }: ILoadingProps = { type: 'area' },
) => {
return (
<div className={`flex w-full justify-center items-center ${type === 'app' ? 'h-full' : ''}`}>