chore: remove credential helper box and clear default input values on login page
This commit is contained in:
parent
23dfc84a84
commit
d55a91d2b8
|
|
@ -15,8 +15,8 @@ interface LoginProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Login: React.FC<LoginProps> = ({ onLoginSuccess }) => {
|
export const Login: React.FC<LoginProps> = ({ onLoginSuccess }) => {
|
||||||
const [username, setUsername] = useState('mtdemne');
|
const [username, setUsername] = useState('');
|
||||||
const [password, setPassword] = useState('09128121946');
|
const [password, setPassword] = useState('');
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
const [errorMsg, setErrorMsg] = useState('');
|
const [errorMsg, setErrorMsg] = useState('');
|
||||||
|
|
||||||
|
|
@ -84,7 +84,7 @@ export const Login: React.FC<LoginProps> = ({ onLoginSuccess }) => {
|
||||||
required
|
required
|
||||||
value={username}
|
value={username}
|
||||||
onChange={(e) => setUsername(e.target.value)}
|
onChange={(e) => setUsername(e.target.value)}
|
||||||
placeholder="mtdemne"
|
placeholder="نام کاربری"
|
||||||
autoComplete="username"
|
autoComplete="username"
|
||||||
dir="ltr"
|
dir="ltr"
|
||||||
className="pl-9 text-left font-mono text-[13px]"
|
className="pl-9 text-left font-mono text-[13px]"
|
||||||
|
|
@ -104,7 +104,7 @@ export const Login: React.FC<LoginProps> = ({ onLoginSuccess }) => {
|
||||||
required
|
required
|
||||||
value={password}
|
value={password}
|
||||||
onChange={(e) => setPassword(e.target.value)}
|
onChange={(e) => setPassword(e.target.value)}
|
||||||
placeholder="•••••••••••"
|
placeholder="••••••••"
|
||||||
autoComplete="current-password"
|
autoComplete="current-password"
|
||||||
dir="ltr"
|
dir="ltr"
|
||||||
className="pl-9 text-left font-mono text-[13px]"
|
className="pl-9 text-left font-mono text-[13px]"
|
||||||
|
|
@ -127,14 +127,6 @@ export const Login: React.FC<LoginProps> = ({ onLoginSuccess }) => {
|
||||||
)}
|
)}
|
||||||
</Button>
|
</Button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div className="rounded-lg border bg-muted/40 p-2.5 text-center text-[11.5px] text-muted-foreground">
|
|
||||||
<span>کاربر: </span>
|
|
||||||
<code className="font-mono font-semibold text-foreground">mtdemne</code>
|
|
||||||
<span className="mx-2 text-border">|</span>
|
|
||||||
<span>رمز: </span>
|
|
||||||
<code className="font-mono font-semibold text-foreground">09128121946</code>
|
|
||||||
</div>
|
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue