From 0ec9ef92ee0a58ff9bbb309aa94a8cc63565f60a Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Sun, 3 Jul 2022 15:10:49 -0700 Subject: [PATCH] cleanup --- src/ui/App.tsx | 4 +- src/ui/components/MiniDialog.tsx | 8 +-- src/ui/components/RightBar.tsx | 8 +-- src/ui/components/ServerLaunchSection.tsx | 6 +-- src/ui/components/TopBar.tsx | 4 +- src/ui/components/common/BigButton.tsx | 2 +- src/ui/components/common/Checkbox.tsx | 6 +-- src/ui/components/common/DirInput.tsx | 4 +- src/ui/components/common/DownloadSection.tsx | 10 ++-- src/ui/components/common/HelpButton.tsx | 8 +-- src/ui/components/common/MainProgressBar.tsx | 8 +-- src/ui/components/common/ProgressBar.tsx | 14 +++--- src/ui/components/common/TextInput.tsx | 6 +-- src/ui/components/menu/Divider.tsx | 4 +- src/ui/components/menu/Downloads.tsx | 30 +++++------ src/ui/components/menu/Menu.tsx | 12 ++--- src/ui/components/menu/Options.tsx | 52 ++++++++++---------- src/ui/components/news/NewsSection.tsx | 12 ++--- 18 files changed, 99 insertions(+), 99 deletions(-) diff --git a/src/ui/App.tsx b/src/ui/App.tsx index f83d912..92277a4 100644 --- a/src/ui/App.tsx +++ b/src/ui/App.tsx @@ -166,7 +166,7 @@ class App extends React.Component { { // Mini downloads section this.state.miniDownloadsOpen ? ( -
+
{ @@ -209,7 +209,7 @@ class App extends React.Component { ) : null } -
+
{ render() { return ( -
+
{ this.props.closeable !== undefined && this.props.closeable ? -
+
{this.props?.title} - +
: null } -
+
{this.props.children}
diff --git a/src/ui/components/RightBar.tsx b/src/ui/components/RightBar.tsx index 7966e17..f3f1ff7 100644 --- a/src/ui/components/RightBar.tsx +++ b/src/ui/components/RightBar.tsx @@ -16,12 +16,12 @@ export default class RightBar extends React.Component { render() { return ( -
-
-
this.openInBrowser(DISCORD)}> +
+
+
this.openInBrowser(DISCORD)}>
-
this.openInBrowser(GITHUB)}> +
this.openInBrowser(GITHUB)}>
diff --git a/src/ui/components/ServerLaunchSection.tsx b/src/ui/components/ServerLaunchSection.tsx index 92af46f..3644310 100644 --- a/src/ui/components/ServerLaunchSection.tsx +++ b/src/ui/components/ServerLaunchSection.tsx @@ -196,7 +196,7 @@ export default class ServerLaunchSection extends React.Component { this.state.grasscutterEnabled && (
-
+
} -
+
{this.state.buttonLabel} - +
diff --git a/src/ui/components/TopBar.tsx b/src/ui/components/TopBar.tsx index cbeec49..f1fac63 100644 --- a/src/ui/components/TopBar.tsx +++ b/src/ui/components/TopBar.tsx @@ -43,14 +43,14 @@ export default class TopBar extends React.Component { render() { return ( -
+
{this.state?.version}
-
+
close
diff --git a/src/ui/components/common/BigButton.tsx b/src/ui/components/common/BigButton.tsx index aa84145..fdc5690 100644 --- a/src/ui/components/common/BigButton.tsx +++ b/src/ui/components/common/BigButton.tsx @@ -38,7 +38,7 @@ export default class BigButton extends React.Component { render() { return (
-
{this.props.children}
+
{this.props.children}
) } diff --git a/src/ui/components/common/Checkbox.tsx b/src/ui/components/common/Checkbox.tsx index 42b7487..517f269 100644 --- a/src/ui/components/common/Checkbox.tsx +++ b/src/ui/components/common/Checkbox.tsx @@ -40,10 +40,10 @@ export default class Checkbox extends React.Component { render() { return ( -
+
-