Skip to content

Commit 3b4fc99

Browse files
committed
style: Remove demo credentials section from Login component for cleaner UI
1 parent 1a29ee8 commit 3b4fc99

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

src/pages/Login.js

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ const Login = () => {
4141
setLoading(false);
4242
}
4343
};
44-
const demoCredentials = [
45-
{ username: 'admin', password: 'password123', role: 'Admin' },
46-
{ username: 'manager_colombo', password: 'password123', role: 'Manager - Colombo' },
47-
{ username: 'recept_colombo', password: 'password123', role: 'Receptionist - Colombo' },
48-
{ username: 'accountant_colombo', password: 'password123', role: 'Accountant - Colombo' }
49-
];
5044

5145
return (
5246
<div className="login-page" style={{
@@ -203,37 +197,6 @@ const Login = () => {
203197
</div>
204198
</Form>
205199

206-
{/* Demo Credentials */}
207-
<div className="mt-4 pt-4 border-top">
208-
<small className="d-block mb-2" style={{ color: '#495057', fontWeight: '600' }}>Demo Credentials:</small>
209-
{demoCredentials.map((cred, index) => (
210-
<div key={index} className="small mb-2 p-2 rounded" style={{
211-
background: 'rgba(26, 35, 126, 0.05)',
212-
border: '1px solid rgba(26, 35, 126, 0.1)'
213-
}}>
214-
<strong style={{ color: '#1a237e', fontSize: '0.9rem' }}>{cred.role}:</strong><br />
215-
<code style={{ color: '#1976d2', background: 'rgba(25, 118, 210, 0.1)', padding: '2px 6px', borderRadius: '3px', fontSize: '0.85rem' }}>{cred.username}</code><br />
216-
<code style={{ color: '#0d47a1', background: 'rgba(13, 71, 161, 0.1)', padding: '2px 6px', borderRadius: '3px', fontSize: '0.85rem' }}>{cred.password}</code>
217-
<Button
218-
size="sm"
219-
style={{
220-
background: 'linear-gradient(135deg, #1a237e 0%, #0d47a1 100%)',
221-
border: 'none',
222-
color: 'white',
223-
marginLeft: '8px',
224-
fontWeight: '500'
225-
}}
226-
onClick={() => {
227-
setIdentifier(cred.username);
228-
setPassword(cred.password);
229-
}}
230-
>
231-
Use
232-
</Button>
233-
</div>
234-
))}
235-
</div>
236-
237200
{/* Additional Links */}
238201
<div className="mt-4 text-center">
239202
<p className="mb-2">

0 commit comments

Comments
 (0)