should be ready now

This commit is contained in:
David Ralph
2020-09-25 14:32:14 +01:00
parent 0dbc586952
commit 9bd4f99006
7 changed files with 14 additions and 9 deletions

View File

@@ -39,7 +39,7 @@ export default class Settings extends React.PureComponent {
reader.onload = (readerEvent) => {
const content = JSON.parse(readerEvent.target.result);
for (const key of Object.keys(content)) localStorage.setItem(key, content[key]);
toast(this.props.toastLanguage.imported_settings);
toast(this.props.toastLanguage.imported);
};
};

View File

@@ -44,10 +44,10 @@ export default class Update extends React.PureComponent {
render() {
return <div className='updateContent'>
<span className='closeModal' onClick={this.props.modalClose}>&times;</span>
<h1 style={{ 'marginBottom':'-10px' }} dangerouslySetInnerHTML={{__html: this.state.title}}></h1>
<h1 style={{ 'marginBottom':'-10px' }}>{this.state.title}</h1>
<h5 style={{ 'lineHeight':'0px' }}> By {this.state.author} {this.state.date}</h5>
<img draggable='false' src={this.state.image} alt='Update'></img>
<p dangerouslySetInnerHTML={{__html: this.state.content + `<br/><p>Read on the blog here: <a target='_blank' href='${this.state.url}'>${this.state.url}</a></p>`}}></p>
<p dangerouslySetInnerHTML={{__html: this.state.content + `<br/><p>Read on the blog here: <a target='_blank' class='modalLink' href='${this.state.url}'>${this.state.url}</a></p>`}}></p>
</div>;
}
}

View File

@@ -10,7 +10,7 @@ export default class Section extends React.PureComponent {
extraHTML = <li className={'extraSettings ' + this.props.title}>{this.props.children}</li>
expandMore = <ExpandMore
style={{ 'transition': 'all 0.5s ease 0s' }}
className={'expandIcons ' + 'expand' + this.props.title}
className={`expandIcons expand${this.props.title}`}
onClick={() => SettingsFunctions.toggleExtra(document.getElementsByClassName(this.props.title)[0], document.getElementsByClassName('expand' + this.props.title)[0])}
/>
}

View File

@@ -4,7 +4,7 @@ export default class LanguageSettings extends React.PureComponent {
render() {
return (
<div className='section'>
<h4 htmlFor='language'>{this.props.language.language} </h4>
<h4 htmlFor='language'>{this.props.language.language}</h4>
<select className='select-css' name='language' id='language' onChange={() => localStorage.setItem('language', document.getElementById('language').value)}>
<option className='choices' value='en'>English</option>
<option className='choices' value='nl'>Nederlands</option>