remove cloud mode for transfer website

This commit is contained in:
Francis Cao 2024-02-28 10:22:32 -08:00
parent 3d6cdddd38
commit 6ac147f484

View File

@ -33,23 +33,21 @@ export function WebsiteData({ websiteId, onSave }: { websiteId: string; onSave?:
return ( return (
<> <>
{process.env.cloudMode && ( <ActionForm
<ActionForm label={formatMessage(labels.transferWebsite)}
label={formatMessage(labels.transferWebsite)} description={formatMessage(messages.transferWebsite)}
description={formatMessage(messages.transferWebsite)} >
> <ModalTrigger disabled={!isTeamOwner}>
<ModalTrigger disabled={!isTeamOwner}> <Button variant="secondary" disabled={!isTeamOwner}>
<Button variant="secondary" disabled={!isTeamOwner}> {formatMessage(labels.transfer)}
{formatMessage(labels.transfer)} </Button>
</Button> <Modal title={formatMessage(labels.transferWebsite)}>
<Modal title={formatMessage(labels.transferWebsite)}> {(close: () => void) => (
{(close: () => void) => ( <WebsiteTransferForm websiteId={websiteId} onSave={handleSave} onClose={close} />
<WebsiteTransferForm websiteId={websiteId} onSave={handleSave} onClose={close} /> )}
)} </Modal>
</Modal> </ModalTrigger>
</ModalTrigger> </ActionForm>
</ActionForm>
)}
<ActionForm <ActionForm
label={formatMessage(labels.resetWebsite)} label={formatMessage(labels.resetWebsite)}
description={formatMessage(messages.resetWebsiteWarning)} description={formatMessage(messages.resetWebsiteWarning)}