mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
fix($env): order API integration update (#8431)
This commit is contained in:
parent
cc07a48500
commit
226874fe23
@ -23,7 +23,7 @@ export const OrderEnvironments: FC<OrderEnvironmentsProps> = () => {
|
|||||||
);
|
);
|
||||||
const errors = useFormErrors();
|
const errors = useFormErrors();
|
||||||
const { orderEnvironments } = useOrderEnvironmentApi();
|
const { orderEnvironments } = useOrderEnvironmentApi();
|
||||||
const { setToastData, setToastApiError } = useToast();
|
const { setToastApiError } = useToast();
|
||||||
|
|
||||||
if (!isPro() || !isPurchaseAdditionalEnvironmentsEnabled) {
|
if (!isPro() || !isPurchaseAdditionalEnvironmentsEnabled) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -84,8 +84,6 @@ export const OrderEnvironmentsDialog: FC<OrderEnvironmentsDialogProps> = ({
|
|||||||
const [costCheckboxChecked, setCostCheckboxChecked] = useState(false);
|
const [costCheckboxChecked, setCostCheckboxChecked] = useState(false);
|
||||||
const [environmentNames, setEnvironmentNames] = useState<string[]>(['']);
|
const [environmentNames, setEnvironmentNames] = useState<string[]>(['']);
|
||||||
|
|
||||||
console.log({ environmentNames });
|
|
||||||
|
|
||||||
const trackEnvironmentSelect = () => {
|
const trackEnvironmentSelect = () => {
|
||||||
trackEvent('order-environments', {
|
trackEvent('order-environments', {
|
||||||
props: {
|
props: {
|
||||||
|
@ -12,8 +12,7 @@ export const useOrderEnvironmentApi = () => {
|
|||||||
body: JSON.stringify(payload),
|
body: JSON.stringify(payload),
|
||||||
});
|
});
|
||||||
|
|
||||||
const res = await makeRequest(req.caller, req.id);
|
await makeRequest(req.caller, req.id);
|
||||||
return res.json();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user