diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-10-14 08:48:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 08:48:08 +0200 |
commit | f06c7da3e09afbbe757101677b4c8f32d051e471 (patch) | |
tree | b8ceb13fef267c6963931286d082a07d62ed3402 /src/components/services/content/ErrorHandlers/styles.ts | |
parent | 5.6.3-nightly.33 [skip ci] (diff) | |
download | ferdium-app-f06c7da3e09afbbe757101677b4c8f32d051e471.tar.gz ferdium-app-f06c7da3e09afbbe757101677b4c8f32d051e471.tar.zst ferdium-app-f06c7da3e09afbbe757101677b4c8f32d051e471.zip |
chore: convert class components to functional (#2065)
Diffstat (limited to 'src/components/services/content/ErrorHandlers/styles.ts')
-rw-r--r-- | src/components/services/content/ErrorHandlers/styles.ts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/components/services/content/ErrorHandlers/styles.ts b/src/components/services/content/ErrorHandlers/styles.ts new file mode 100644 index 000000000..72d62f5e3 --- /dev/null +++ b/src/components/services/content/ErrorHandlers/styles.ts | |||
@@ -0,0 +1,25 @@ | |||
1 | export default (theme) => ({ | ||
2 | component: { | ||
3 | left: 0, | ||
4 | position: 'absolute', | ||
5 | top: 0, | ||
6 | width: '100%', | ||
7 | zIndex: 0, | ||
8 | alignItems: 'center', | ||
9 | background: theme.colorWebviewErrorHandlerBackground, | ||
10 | display: 'flex', | ||
11 | flexDirection: 'column', | ||
12 | justifyContent: 'center', | ||
13 | textAlign: 'center', | ||
14 | }, | ||
15 | buttonContainer: { | ||
16 | display: 'flex', | ||
17 | flexDirection: 'row', | ||
18 | height: 'auto', | ||
19 | margin: [40, 0, 20], | ||
20 | |||
21 | '& button': { | ||
22 | margin: [0, 10, 0, 10], | ||
23 | }, | ||
24 | }, | ||
25 | }); | ||