Introduce Spinner and Dialog.loading
Summary: Per title Reviewed By: nikoant Differential Revision: D29790505 fbshipit-source-id: 7c995be59418ffd4c337eb8d1905bd2f2466e5cd
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f74029699f
commit
62674da74e
18
desktop/flipper-plugin/src/ui/Spinner.tsx
Normal file
18
desktop/flipper-plugin/src/ui/Spinner.tsx
Normal 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 />} />
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user