mirror of
https://github.com/supabase/supabase.git
synced 2026-05-24 12:47:48 +08:00
* fix: add jsr:@std/path module * fix: use relative paths for files in editor * add a deploy warning to edge functions update * hide deploy if can't write * remove retry * Fix * Small clean up * Address feedback * Fix --------- Co-authored-by: Lakshan Perera <lakshan@laktek.com> Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
31 lines
827 B
TypeScript
31 lines
827 B
TypeScript
import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
|
|
|
|
interface DeployEdgeFunctionWarningModalProps {
|
|
visible: boolean
|
|
onCancel: () => void
|
|
onConfirm: () => void
|
|
}
|
|
|
|
export const DeployEdgeFunctionWarningModal = ({
|
|
visible,
|
|
onCancel,
|
|
onConfirm,
|
|
}: DeployEdgeFunctionWarningModalProps) => {
|
|
return (
|
|
<ConfirmationModal
|
|
visible={visible}
|
|
size="medium"
|
|
title="Confirm deploying updates"
|
|
confirmLabel="Deploy updates"
|
|
variant="warning"
|
|
onCancel={onCancel}
|
|
onConfirm={onConfirm}
|
|
>
|
|
<p className="text-sm text-foreground-light">
|
|
Deploying will immediately update your live Edge Function for this project and cannot be
|
|
rolled back automatically. Are you sure you want to deploy the changes?
|
|
</p>
|
|
</ConfirmationModal>
|
|
)
|
|
}
|