summaryrefslogtreecommitdiff
path: root/src/components/StyleGuide.js
diff options
context:
space:
mode:
authorHaishan <[email protected]>2019-12-27 16:29:10 +0800
committerHaishan <[email protected]>2019-12-27 16:29:46 +0800
commit3d761f5c361426f7c5a57b4817830c768317f80b (patch)
tree127a315c8e478ef8c71a65acc9b2cf491ddd3cb3 /src/components/StyleGuide.js
parentaca578cb9dfdaed33f91c62ffdf3ef1a456c6a72 (diff)
refactor: add a loading state to Button
Diffstat (limited to 'src/components/StyleGuide.js')
-rw-r--r--src/components/StyleGuide.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/components/StyleGuide.js b/src/components/StyleGuide.js
index 63afb54..02bff7c 100644
--- a/src/components/StyleGuide.js
+++ b/src/components/StyleGuide.js
@@ -5,10 +5,8 @@ import { Zap } from 'react-feather';
import ToggleSwitch from './ToggleSwitch';
import Input from './Input';
import Switch from './Switch';
-import Button, { ButtonWithIcon, ButtonPlain } from './Button';
-// import Modal from 'c/Modal';
-// import APIConfig from 'c/APIConfig';
-// import Proxy from 'c/Proxy';
+import Button from './Button';
+import { LoadingDot } from './shared/Basic';
const paneStyle = {
padding: '20px 0'
@@ -52,12 +50,13 @@ class StyleGuide extends PureComponent {
/>
</Pane>
<Pane>
+ <Button text="Test Lxatency" start={<Zap size={16} />} />
+ <Button text="Test Lxatency" start={<Zap size={16} />} isLoading />
<Button label="Test Lxatency" />
- <Button text="Test Lxatency" start={<Zap size={17} />} />
- <ButtonPlain label="Plain" />
+ <Button label="Button Plain" kind="minimal" />
</Pane>
<Pane style={{ paddingLeft: 20 }}>
- <div className="dot_loading dot_loading_white" />
+ <LoadingDot />
</Pane>
</div>
);