Skip to content
This repository was archived by the owner on Jul 9, 2019. It is now read-only.

Commit 556c308

Browse files
committed
fix: Center spinner in loading button
1 parent 2f2a914 commit 556c308

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-toolbox-components",
3-
"version": "0.1.7",
3+
"version": "0.1.8",
44
"description": "Various react toolbox components",
55
"main": "dist/src/index.js",
66
"scripts": {

src/loading-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class LoadingButton extends Component<Props, State> {
4747
}
4848
})}>
4949
{children}
50-
{loading && <Spinner size={24} type='circular' background='rgba(255, 255, 255, 0.5)' />}
50+
{loading && <Spinner size={24} center type='circular' background='rgba(255, 255, 255, 0.5)' />}
5151
</Button>
5252
)
5353
}

0 commit comments

Comments
 (0)