Merge branch 'develop' into feature/mobile-menu

This commit is contained in:
2025-11-14 15:25:57 +00:00
10 changed files with 184 additions and 46 deletions

View File

@@ -13,21 +13,19 @@ const NPEDFields = () => {
const [showPwd, setShowPwd] = useState(false);
const { signIn, signOut } = useNPEDAuth();
const initialValues = state.npedUser
? {
username: state.npedUser?.propUsername?.value,
password: state.npedUser?.propPassword?.value,
clientId: state.npedUser?.propClientID?.value,
frontId: "NPED",
rearId: "NPED",
}
: {
username: "",
password: "",
clientId: "",
frontId: "NPED",
rearId: "NPED",
};
const username = state.npedUser?.propUsername?.value;
const password = state.npedUser?.propPassword?.value;
const clientId = state.npedUser?.propClientID?.value;
const frontId = "NPED";
const rearId = "NPED";
const initialValues = {
username: username ?? "",
password: password ?? "",
clientId: clientId ?? "",
frontId: frontId,
rearId: rearId,
};
const handleSubmit = async (values: NPEDFieldType) => {
const valuesToSend = {
@@ -100,6 +98,7 @@ const NPEDFields = () => {
className="p-1.5 border border-gray-400 rounded-lg"
/>
</FormGroup>
{!state.npedUser?.propClientID?.value ? (
<button
type="submit"