Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Add comments

Joshen Lim7bb9e61c53b9
diff --git a/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx b/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx
index 60a8a97bdb6..276c6521117 100644
--- a/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx
+++ b/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx
@@ -29,6 +29,7 @@ import InformationBox from 'components/ui/InformationBox'
// - Highlight available dates in the calendar and add a legend
// - Just need to check in thereafter with Jonny if the changes are okay
// - Deprecate old PITR components
+// - Be sure to go through any other [Joshen TODO] mentions
const PITRSelection = ({}) => {
const { backups } = useStore()
@@ -118,6 +119,10 @@ const PITRSelection = ({}) => {
setSelectedDate(updatedDate)
}
+ const onConfirmRestore = async () => {
+ // Refer to PITRBackupSelection.tsx for logic here
+ }
+
return (
<>
<FormHeader
@@ -257,7 +262,7 @@ const PITRSelection = ({}) => {
<Button type="default" onClick={() => setShowConfirmation(false)}>
Cancel
</Button>
- <Button type="warning" onClick={() => setShowConfirmation(false)}>
+ <Button type="warning" onClick={onConfirmRestore}>
I understand, begin restore
</Button>
</div>