1
- import { IUser } from '../interfaces/user.interface' ;
1
+ // Settings.jsx
2
2
import React from 'react' ;
3
- import { Document } from 'mongoose' ; // Import Document if you are using mongoose
3
+ import styled from 'styled-components' ;
4
+
5
+ // Fixed interface import - using IUser instead of User component
6
+ // Assuming this is the correct path - adjust if needed
7
+ import { IUser } from '../interfaces/user.interface' ;
4
8
5
- export interface IUserModel extends IUser , Document {
9
+ // If you meant to import the User component, uncomment this and adjust path:
10
+ // import User from '../components/User';
11
+
12
+ // Define the interface properly
13
+ export interface IUserModel extends IUser {
6
14
// Add any additional properties if needed
7
15
}
8
16
9
- const Settings : React . FC = ( ) => (
10
- < div className = "settings" >
11
- < h2 > Settings</ h2 >
12
- < div >
13
- < h3 > Network Settings</ h3 >
14
- < button > Configure Lightning Network Node</ button >
15
- < button > Configure Coinjoin</ button >
16
- < button > Nostr Backup</ button >
17
- < button > Add Relay</ button > { /* Fixed typo here */ }
18
- </ div >
19
- < div >
20
- < h3 > Security Settings</ h3 >
21
- < button > Set PIN/Password</ button >
22
- < button > Backup and Recovery</ button >
23
- </ div >
24
- </ div >
25
- ) ;
26
-
27
- export default Settings ;
17
+ // Styled components for better organization
18
+ const SettingsContainer = styled . div `
19
+ padding: 2rem;
20
+ max-width: 800px;
21
+ margin: 0 auto;
22
+ ` ;
23
+
24
+ const Section = styled . div `
25
+ margin: 1.5rem 0;
26
+ ` ;
27
+
28
+ const Title = styled . h2 `
29
+ color: #333;
30
+ margin-bottom: 1rem;
31
+ ` ;
32
+
33
+ const Subtitle = styled . h3 `
34
+ color: #555;
35
+ margin: 0.5rem 0;
36
+ ` ;
37
+
38
+ const Button = styled . button `
39
+ background-color: #007bff;
40
+ color: white;
41
+ border: none;
42
+ padding: 0.5rem 1rem;
43
+ margin: 0.5rem;
44
+ border-radius: 4px;
45
+ cursor: pointer;
46
+ &:hover {
47
+ background-color: #0056b3;
48
+ }
49
+ ` ;
50
+
51
+ const Settings = ( ) => {
52
+ return (
53
+ < SettingsContainer className = "settings" >
54
+ < Title > Settings</ Title >
55
+ < Section >
56
+ < Subtitle > Network Settings</ Subtitle >
57
+ < Button > Configure Lightning Network Node</ Button >
58
+ < Button > Configure Coinjoin</ Button >
59
+ < Button > Nostr Backup</ Button >
60
+ < Button > Add Relay</ Button >
61
+ </ Section >
62
+ < Section >
63
+ < Subtitle > Security Settings</ Subtitle >
64
+ < Button > Set PIN/Password</ Button >
65
+ < Button > Backup and Recovery</ Button >
66
+ </ Section >
67
+ </ SettingsContainer >
68
+ ) ;
69
+ } ;
28
70
71
+ export default Settings ;
0 commit comments