fix: various widget fixes and cleanup etc

Co-authored-by: Alex Sparkes <turbomarshmello@gmail.com>
This commit is contained in:
David Ralph
2021-11-11 20:43:33 +00:00
parent 4a6f93e701
commit c627599590
20 changed files with 203 additions and 97 deletions

View File

@@ -1,11 +1,15 @@
import variables from 'modules/variables';
import './preview.scss';
export default function Preview(props) {
const getMessage = (text) => variables.language.getMessage(variables.languagecode, text);
return (
<div className='preview'>
<h3>NOTICE</h3>
<h1>You are currently in preview mode. Settings will be reset on closing this tab.</h1>
<button className='uploadbg' onClick={() => props.setup()}>Continue Setup</button>
<div className='preview-mode'>
<h3>{getMessage('modals.main.settings.reminder.title')}</h3>
<h1>{getMessage('modals.welcome.preview.description')}</h1>
<button className='uploadbg' onClick={() => props.setup()}>{getMessage('modals.welcome.preview.continue')}</button>
</div>
);
}

View File

@@ -1,4 +1,4 @@
.preview {
.preview-mode {
position: absolute;
bottom: 20px;
right: 20px;