Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const placeholder = {
height: this.props.size,
width: this.props.size,
backgroundColor: Colors.blue500
};
// White logo
if (this.props.white) {
return
constructor(props: AllProps) {
super(props);
this.state = {
// Theme and updateTheme from anywhere
theme: new UserTheme(false, Colors.blue500),
updateTheme: (newTheme) => {
this.setState({
theme: newTheme
});
},
// update app language
language: languageAvailable.en,
updateLanguage: (newLang) => {
langs.setLanguage(newLang);
}
}
// set the default language
langs.setLanguage(this.state.language);
}
this.setState(state => ({
valueNormal: !state.valueNormal,
}))
}
/>
);
}
}
this.setState({ checked: 'custom' })}>
render() {
const { rootView, bottomView, ContainedButton } = styles;
const setup: SetupProps = {
isSetup: true
};
return (
<button style="{ContainedButton}" color="{Colors.blue500}" mode="contained"> Actions.replace('Settings', setup)}>
{langs.agreement_agree}
</button>
<button style="{ContainedButton}" color="{Colors.red500}" mode="contained">
{langs.agreement_disagree}
</button>
<dialog>
WoWs Info
{langs.agreement_you_have_to_agree}
<button> Actions.replace('Welcome')}>{langs.agreement_retry}</button>
</dialog>
this.setState(state => ({
checkedCustom: !state.checkedCustom,
}))
}
>
this.setState(state => ({
indeterminate: !state.indeterminate,
}))
}
>