mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
refactor: settings route, link, component
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import styles from './settings-modal.module.css';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
|
||||
const SettingsModal = () => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
return (
|
||||
<div className={styles.settingsModal}>
|
||||
<div className={styles.header}>
|
||||
<span className={styles.version}>v0.2.0</span>
|
||||
Settings
|
||||
<span className={styles.closeButton} title='close' onClick={() => navigate(-1)} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default SettingsModal;
|
||||
Reference in New Issue
Block a user