diff --git a/src/ui/App.tsx b/src/ui/App.tsx index 06a341a..653c64b 100644 --- a/src/ui/App.tsx +++ b/src/ui/App.tsx @@ -11,6 +11,14 @@ import ServerLaunchSection from './components/ServerLaunchSection' import ProgressBar from './components/common/ProgressBar' import MainProgressBar from './components/common/MainProgressBar' +interface IProps { + [key: string]: never +} + +interface IState { + isDownloading: boolean +} + const downloadHandler = new DownloadHandler() async function download(url: string, filename: string, path: string) { @@ -26,20 +34,29 @@ async function TESTDOWNLOAD() { ) } -function App() { - return ( -
- +class App extends React.Component { + constructor(props: IProps) { + super(props) + this.state = { + isDownloading: false, + } + } - + render() { + return ( +
+ - + -
- + + +
+ +
-
- ) + ) + } } export default App diff --git a/src/ui/components/menu/Menu.css b/src/ui/components/menu/Menu.css new file mode 100644 index 0000000..e69de29 diff --git a/src/ui/components/menu/Menu.tsx b/src/ui/components/menu/Menu.tsx new file mode 100644 index 0000000..1eca86f --- /dev/null +++ b/src/ui/components/menu/Menu.tsx @@ -0,0 +1,22 @@ +import React from 'react' + +interface IProps { + children: React.ReactNode[] | React.ReactNode; + className?: string; + heading: string; +} + +export default class Menu extends React.Component { + constructor(props: IProps) { + super(props) + } + + render() { + return ( +
+
{this.props.heading}
+ {this.props.children} +
+ ) + } +} \ No newline at end of file diff --git a/src/ui/components/menu/Options.css b/src/ui/components/menu/Options.css new file mode 100644 index 0000000..e69de29 diff --git a/src/ui/components/menu/Options.tsx b/src/ui/components/menu/Options.tsx new file mode 100644 index 0000000..ae699a7 --- /dev/null +++ b/src/ui/components/menu/Options.tsx @@ -0,0 +1,22 @@ +import React from 'react' +import Menu from './Menu' +import './Options.css' + +export default class Options extends React.Component<{}, never> { + constructor(props: Record) { + super(props) + } + + render() { + return ( + +
+
Test Option
+
+ +
+
+
+ ) + } +} \ No newline at end of file