@campxdev/shared 0.3.6 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -0,0 +1,19 @@
1
+ import {Box, CircularProgress} from '@mui/material'
2
+
3
+ const FullScreenLoader = () => {
4
+ return (
5
+ <Box
6
+ sx={{
7
+ margin: 0,
8
+ padding: 0,
9
+ height: '100vh',
10
+ width: '100vw',
11
+ display: 'grid',
12
+ placeItems: 'center',
13
+ }}
14
+ >
15
+ <CircularProgress size={60} />
16
+ </Box>
17
+ )
18
+ }
19
+ export default FullScreenLoader
@@ -13,6 +13,7 @@ import StepsHeader from './StepsHeader'
13
13
  import UploadDocument from './UploadDocument'
14
14
  import {Table as StyledTable} from './Table'
15
15
  import ErrorBoundary from './ErrorBoundary'
16
+ import FullScreenLoader from './FullScreenLoader'
16
17
 
17
18
  export {default as Image} from './Image'
18
19
  export {default as PageHeader} from './PageHeader'
@@ -55,6 +56,7 @@ export {
55
56
  UploadDocument,
56
57
  StyledTable,
57
58
  ErrorBoundary,
59
+ FullScreenLoader,
58
60
  }
59
61
 
60
62
  export * from './UploadButton/types'
@@ -1,2 +1,3 @@
1
- export { default as useFetch } from './useFetch'
1
+ export {default as useFetch} from './useFetch'
2
2
  export * from './useRouter'
3
+ export {default} from './useAuth'