mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-07 00:14:25 +00:00
Migrate Settings to Mantine ui
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
import React from 'react';
|
||||
import { Text, Toggle } from '@geist-ui/core';
|
||||
import { Text, Switch, Stack } from '@mantine/core';
|
||||
|
||||
const AppearanceSettings = ({ themeSettings, onThemeChange }) => {
|
||||
return (
|
||||
<div className="setting-group">
|
||||
<Text h4>Appearance</Text>
|
||||
<div className="setting-item">
|
||||
<Text>Dark Mode</Text>
|
||||
<Toggle checked={themeSettings === 'dark'} onChange={onThemeChange} />
|
||||
</div>
|
||||
</div>
|
||||
<Stack spacing="xs">
|
||||
<Text fw={500} size="lg">
|
||||
Appearance
|
||||
</Text>
|
||||
<Switch
|
||||
label="Dark Mode"
|
||||
checked={themeSettings === 'dark'}
|
||||
onChange={onThemeChange}
|
||||
/>
|
||||
</Stack>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user