From 903488941432e29e43bb3937c06e25ba611babcd Mon Sep 17 00:00:00 2001 From: Jorik Schellekens Date: Thu, 28 May 2020 14:43:01 +0100 Subject: [PATCH] Reorder interfaces --- .../tabs/user/AppearanceUserSettingsTab.tsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/components/views/settings/tabs/user/AppearanceUserSettingsTab.tsx b/src/components/views/settings/tabs/user/AppearanceUserSettingsTab.tsx index 702fed7b4f..2fc9c3e6c4 100644 --- a/src/components/views/settings/tabs/user/AppearanceUserSettingsTab.tsx +++ b/src/components/views/settings/tabs/user/AppearanceUserSettingsTab.tsx @@ -34,6 +34,16 @@ import { IValidationResult, IFieldState } from '../../../elements/Validation'; interface IProps { } +interface IThemeState { + theme: string, + useSystemTheme: boolean, +} + +export interface CustomThemeMessage { + isError: boolean, + text: string +}; + interface IState extends IThemeState { // String displaying the current selected fontSize. // Needs to be string for things like '17.' without @@ -44,13 +54,6 @@ interface IState extends IThemeState { useCustomFontSize: boolean, } -export type CustomThemeMessage = {isError: boolean, text: string}; - -interface IThemeState { - theme: string, - useSystemTheme: boolean, -} - export default class AppearanceUserSettingsTab extends React.Component { private themeTimer: NodeJS.Timeout;