From 2e22260777f7d966f91b45405d3c559532e988a2 Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Mon, 10 Oct 2022 20:01:11 +0100 Subject: [PATCH] Added loading msg --- pages/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pages/index.js b/pages/index.js index 58aa46f..093ee87 100644 --- a/pages/index.js +++ b/pages/index.js @@ -13,6 +13,7 @@ export default class Home extends Component { super(props); this.state = { + loading: true, steamId: undefined, isPreviewVisible: false, previewUrl: undefined, @@ -46,6 +47,7 @@ export default class Home extends Component { const json = JSON.parse(localStorage.getItem('values')) this.setState({ steamId: json.steamId, values: json.values }); } + this.setState({ loading: false }); } loadPreview() { @@ -85,7 +87,8 @@ export default class Home extends Component { } render() { - return