Bump postcss from 7.0.35 to 7.0.36 (#8)
[ustaxviewer.git] / src / main.tsx
1 // Copyright 2020 Blue Static <https://www.bluestatic.org>
2 // This program is free software licensed under the GNU General Public License,
3 // version 3.0. The full text of the license can be found in LICENSE.txt.
4 // SPDX-License-Identifier: GPL-3.0-only
5
6 import { createSignal } from 'solid-js';
7 import { Show, render } from 'solid-js/dom';
8 import { TaxReturn } from 'ustaxlib/core';
9
10 import App from './App';
11
12 declare const TAX_RETURN_PATH: string;
13
14 function TaxViewerLoader() {
15 const [ state, setState ] = createSignal(undefined as TaxReturn);
16
17 // TODO - consider using dynamic import()
18 setState(require(TAX_RETURN_PATH).default);
19
20 return (
21 <Show when={state() !== undefined} fallback={<h1>Loading...</h1>}>
22 <App tr={state()} />
23 </Show>
24 );
25 }
26
27 render(TaxViewerLoader, document.getElementById('root'));