Introduce Spinner and Dialog.loading

Summary: Per title

Reviewed By: nikoant

Differential Revision: D29790505

fbshipit-source-id: 7c995be59418ffd4c337eb8d1905bd2f2466e5cd
This commit is contained in:
Michel Weststrate
2021-07-22 04:16:01 -07:00
committed by Facebook GitHub Bot
parent f74029699f
commit 62674da74e
5 changed files with 71 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import {LoadingOutlined} from '@ant-design/icons';
import {Spin} from 'antd';
import React from 'react';
export function Spinner({size}: {size?: number}) {
return (
<Spin indicator={<LoadingOutlined style={{fontSize: size ?? 24}} spin />} />
);
}