mirror of
https://github.com/mue/mue.git
synced 2026-07-13 20:13:47 +02:00
* refactor(files): Initial commit on experimental file structure * refactor(structure): New components system * refactor(structure): Tidy settings' components * Refactor(structure): Component exports and imports * refactor(settings): Use new component imports * feat: unified background.js script * fix(build): Partially, distributions still not ready * feat: critical error on noscript, light theme support for it * fix(background): Critical issue of code making every background #000 * refactor(welcome): Partition into different files + shared components - This took too long and destroyed my sanity --------- Co-authored-by: alexsparkes <turbomarshmello@gmail.com> Co-authored-by: alexsparkes <alexsparkes@gmail.com>
20 lines
527 B
JavaScript
20 lines
527 B
JavaScript
function Row(props) {
|
|
const classes = `${props.final ? 'settingsRow settingsNoBorder' : 'settingsRow'} ${props.inactive ? 'preferencesInactive' : ''}`;
|
|
return <div className={classes}>{props.children}</div>;
|
|
}
|
|
|
|
function Content(props) {
|
|
return (
|
|
<div className="content">
|
|
<span className="title">{props.title}</span>
|
|
<span className="subtitle">{props.subtitle}</span>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
function Action(props) {
|
|
return <div className="action">{props.children}</div>;
|
|
}
|
|
|
|
export { Row, Content, Action };
|