mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 07:39:07 +03:00
chore(studio): rename add-replica sheet query state to visible
This commit is contained in:
1 parent
1f0133358b
commit
6f7cc69b22
1 file changed
+2
-3
+2
-3
@@ -18,7 +18,7 @@ export const AddReadReplicaSheet = ({
|
||||
onSuccess,
|
||||
onRecommendCompute,
|
||||
}: AddReadReplicaSheetProps) => {
|
||||
const [addReplica, setAddReplica] = useQueryState(
|
||||
const [visible, setVisible] = useQueryState(
|
||||
'addReplica',
|
||||
parseAsBoolean.withDefault(false).withOptions({
|
||||
history: 'push',
|
||||
@@ -27,13 +27,12 @@ export const AddReadReplicaSheet = ({
|
||||
})
|
||||
)
|
||||
|
||||
const visible = addReplica === true
|
||||
const checkIsDirtyRef = useRef<() => boolean>(() => false)
|
||||
const pendingRecommendationRef = useRef<RecommendedComputeForReadReplicas | null>(null)
|
||||
|
||||
const onClose = () => {
|
||||
checkIsDirtyRef.current = () => false
|
||||
setAddReplica(false)
|
||||
setVisible(false)
|
||||
}
|
||||
|
||||
const { confirmOnClose, handleOpenChange, modalProps } = useConfirmOnClose({
|
||||
|
||||
Reference in new issue
Block a user