diff --git a/client/src/components/atoms/Spinner.module.scss b/client/src/components/atoms/Spinner.module.scss index 2fd9507..22e4117 100644 --- a/client/src/components/atoms/Spinner.module.scss +++ b/client/src/components/atoms/Spinner.module.scss @@ -29,6 +29,20 @@ padding-top: $spacer / 4; } +.small { + composes: spinner; + margin: 0; + display: inline-block; + + &:before { + width: $font-size-small; + height: $font-size-small; + margin-top: -($font-size-small); + margin-left: -($font-size-small / 2); + border-width: .1rem; + } +} + @keyframes spinner { to { transform: rotate(360deg); diff --git a/client/src/components/atoms/Spinner.tsx b/client/src/components/atoms/Spinner.tsx index 0759275..b8013f3 100644 --- a/client/src/components/atoms/Spinner.tsx +++ b/client/src/components/atoms/Spinner.tsx @@ -1,15 +1,27 @@ import React from 'react' import styles from './Spinner.module.scss' -const Spinner = ({ message }: { message?: string }) => ( -
- {key} - | -
-
- {contracts[key]}
-
- |
-
+ {key} + | +
+
+ {contracts[key]}
+
+ |
+
v{value.version}
+ {value.isLoading ? (
+ v{value.version}
+ {value.network && `(${value.network})`}
+ >
+ ) : (
+ 'Could not get version'
+ )}