mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
add return type to modal result
This commit is contained in:
@@ -5,7 +5,7 @@ import { BsmImage } from "renderer/components/shared/bsm-image.component";
|
||||
import { BsmButton } from "renderer/components/shared/bsm-button.component";
|
||||
import { useTranslation } from "renderer/hooks/use-translation.hook";
|
||||
|
||||
export function GuardModal({resolver}: {resolver: (x: ModalResponse) => void}) {
|
||||
export function GuardModal({resolver}: {resolver: (x: ModalResponse<string>) => void}) {
|
||||
|
||||
const [guardCode, setGuardCode] = useState('');
|
||||
const t = useTranslation();
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useTranslation } from "renderer/hooks/use-translation.hook";
|
||||
import { ModalExitCode, ModalResponse } from "renderer/services/modale.service";
|
||||
import BeatImpatient from '../../../../../assets/images/apngs/beat-impatient.png'
|
||||
|
||||
export function LoginModal({resolver}: {resolver: (x: ModalResponse) => void}) {
|
||||
export function LoginModal({resolver}: {resolver: (x: ModalResponse<any>) => void}) {
|
||||
|
||||
const [username, setUsername] = useState('');
|
||||
const [password, setPassword] = useState('');
|
||||
|
||||
Reference in New Issue
Block a user