Skip to content

Commit

Permalink
feat(container): added aggreements modal and reviewed modals display
Browse files Browse the repository at this point in the history
ref: MANAGER-14722

Signed-off-by: Jacques Larique <[email protected]>
  • Loading branch information
Jacques Larique committed Nov 13, 2024
1 parent a3479a6 commit 87b4755
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function AgreementsUpdateModal () {
const { t } = useTranslation('agreements-update-modal');
const { data: urn } = useAccountUrn({ enabled: region !== 'US' && current === ModalTypes.agreements && window.location.href !== myContractsLink });
const { isAuthorized: canUserAcceptAgreements } = useAuthorizationIam(['account:apiovh:me/agreements/accept'], urn);
const { data: agreements, isLoading } = useAgreementsUpdate({ enabled: canUserAcceptAgreements });
const { data: agreements } = useAgreementsUpdate({ enabled: canUserAcceptAgreements });
const goToContractPage = () => {
navigation.navigateTo('dedicated', `#/billing/autoRenew/agreements`);
};
Expand Down
1 change: 0 additions & 1 deletion packages/manager/apps/container/src/container/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default function Container(): JSX.Element {
chatbotReduced,
setChatbotReduced,
} = useContainer();
useModals();
const shell = useShell();
const [isCookiePolicyApplied, setIsCookiePolicyApplied] = useState(false);
const environment: Environment = shell
Expand Down

0 comments on commit 87b4755

Please sign in to comment.