mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-12-21 03:20:27 +00:00
Wrap intl in span identifying translation
This commit is contained in:
36
frontend/src/components/Form/BasicAuthField.tsx
Normal file
36
frontend/src/components/Form/BasicAuthField.tsx
Normal file
@@ -0,0 +1,36 @@
|
||||
import { useFormikContext } from "formik";
|
||||
import { T } from "src/locale";
|
||||
|
||||
interface Props {
|
||||
id?: string;
|
||||
name?: string;
|
||||
}
|
||||
export function BasicAuthField({ name = "items", id = "items" }: Props) {
|
||||
const { setFieldValue } = useFormikContext();
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="row">
|
||||
<div className="col-6">
|
||||
<label className="form-label" htmlFor="...">
|
||||
<T id="username" />
|
||||
</label>
|
||||
</div>
|
||||
<div className="col-6">
|
||||
<label className="form-label" htmlFor="...">
|
||||
<T id="password" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div className="row mb-3">
|
||||
<div className="col-6">
|
||||
<input id="name" type="text" required autoComplete="off" className="form-control" />
|
||||
</div>
|
||||
<div className="col-6">
|
||||
<input id="pw" type="password" required autoComplete="off" className="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
<button className="btn">+</button>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user