- nuke visible from the face of the earth with fire.
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user