File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -36,55 +36,55 @@ const App: React.FC = () => {
36
36
< Route
37
37
index
38
38
element = {
39
- < Suspense fallback = { < Loader width = { "48px" } height = { "48px" } center /> } >
39
+ < Suspense fallback = { < Loader width = { "48px" } height = { "48px" } /> } >
40
40
< Home />
41
41
</ Suspense >
42
42
}
43
43
/>
44
44
< Route
45
45
path = "cases/*"
46
46
element = {
47
- < Suspense fallback = { < Loader width = { "48px" } height = { "48px" } center /> } >
47
+ < Suspense fallback = { < Loader width = { "48px" } height = { "48px" } /> } >
48
48
< Cases />
49
49
</ Suspense >
50
50
}
51
51
/>
52
52
< Route
53
53
path = "courts/*"
54
54
element = {
55
- < Suspense fallback = { < Loader width = { "48px" } height = { "48px" } center /> } >
55
+ < Suspense fallback = { < Loader width = { "48px" } height = { "48px" } /> } >
56
56
< Courts />
57
57
</ Suspense >
58
58
}
59
59
/>
60
60
< Route
61
61
path = "dashboard/:page/:order/:filter"
62
62
element = {
63
- < Suspense fallback = { < Loader width = { "48px" } height = { "48px" } center /> } >
63
+ < Suspense fallback = { < Loader width = { "48px" } height = { "48px" } /> } >
64
64
< Dashboard />
65
65
</ Suspense >
66
66
}
67
67
/>
68
68
< Route
69
69
path = "dispute-template"
70
70
element = {
71
- < Suspense fallback = { < Loader width = { "48px" } height = { "48px" } center /> } >
71
+ < Suspense fallback = { < Loader width = { "48px" } height = { "48px" } /> } >
72
72
< DisputeTemplateView />
73
73
</ Suspense >
74
74
}
75
75
/>
76
76
< Route
77
77
path = "resolver/*"
78
78
element = {
79
- < Suspense fallback = { < Loader width = { "48px" } height = { "48px" } center /> } >
79
+ < Suspense fallback = { < Loader width = { "48px" } height = { "48px" } /> } >
80
80
< DisputeResolver />
81
81
</ Suspense >
82
82
}
83
83
/>
84
84
< Route
85
85
path = "get-pnk/*"
86
86
element = {
87
- < Suspense fallback = { < Loader width = { "48px" } height = { "48px" } center /> } >
87
+ < Suspense fallback = { < Loader width = { "48px" } height = { "48px" } /> } >
88
88
< GetPnk />
89
89
</ Suspense >
90
90
}
Original file line number Diff line number Diff line change @@ -27,22 +27,21 @@ const StyledKlerosIcon = styled(KlerosIcon)`
27
27
animation: ${ breathing } 2s ease-out infinite normal;
28
28
` ;
29
29
30
- const Container = styled . div < { width ?: Width ; height ?: Height ; center ?: boolean } > `
30
+ const Container = styled . div < { width ?: Width ; height ?: Height } > `
31
+ margin: auto;
31
32
width: ${ ( { width } ) => width ?? "100%" } ;
32
33
height: ${ ( { height } ) => height ?? "100%" } ;
33
- margin: ${ ( { center } ) => center ? "auto" : "initial" } ;
34
34
` ;
35
35
36
36
interface ILoader {
37
37
width ?: Width ;
38
38
height ?: Height ;
39
- center ?: boolean ;
40
39
className ?: string ;
41
40
}
42
41
43
- const Loader : React . FC < ILoader > = ( { width, height, center , className } ) => {
42
+ const Loader : React . FC < ILoader > = ( { width, height, className } ) => {
44
43
return (
45
- < Container { ...{ width, height, center , className } } >
44
+ < Container { ...{ width, height, className } } >
46
45
< StyledKlerosIcon />
47
46
</ Container >
48
47
) ;
You can’t perform that action at this time.
0 commit comments