- nuke visible from the face of the earth with fire.

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-01-12 17:25:25 -05:00
parent 7d6e61043e
commit ba32a71786
58 changed files with 227 additions and 229 deletions

View File

@@ -36,7 +36,7 @@ export function PaymentsGenerateLink({
const { t } = useTranslation();
const [form] = Form.useForm();
const [visible, setVisible] = useState(false);
const [open, setOpen] = useState(false);
const [loading, setLoading] = useState(false);
const [paymentLink, setPaymentLink] = useState(null);
@@ -69,7 +69,7 @@ export function PaymentsGenerateLink({
//Add in confirmation & errors.
if (callback) callback();
// setVisible(false);
// setOpen(false);
setLoading(false);
};
@@ -137,7 +137,7 @@ export function PaymentsGenerateLink({
onClick={() => {
form.resetFields();
setPaymentLink(null);
setVisible(false);
setOpen(false);
}}
>
{t("general.actions.cancel")}
@@ -147,8 +147,8 @@ export function PaymentsGenerateLink({
);
return (
<Popover content={popContent} open={visible}>
<Button onClick={() => setVisible(true)} loading={loading}>
<Popover content={popContent} open={open}>
<Button onClick={() => setOpen(true)} loading={loading}>
{t("payments.actions.generatepaymentlink")}
</Button>
</Popover>