From 7d369df8096889fc0e1e606f90d161fd2296eb9d Mon Sep 17 00:00:00 2001
From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com>
Date: Thu, 14 Mar 2024 01:46:39 -0400
Subject: Schema row option order changed

---
 .../collections/collectionSchema/SchemaRowBox.tsx      | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

(limited to 'src/client/views/collections/collectionSchema/SchemaRowBox.tsx')

diff --git a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
index 39fea2d2e..2b42d666b 100644
--- a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
+++ b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
@@ -121,8 +121,8 @@ export class SchemaRowBox extends ViewBoxBaseComponent<SchemaRowBoxProps>() {
                         pointerEvents: !this._props.isContentActive() ? 'none' : undefined,
                     }}>
                     <IconButton
-                        tooltip="whether document interactions are enabled"
-                        icon={this.Document._lockedPosition ? <CgLockUnlock size="12px" /> : <CgLock size="12px" />}
+                        tooltip="close"
+                        icon={<CgClose size={'16px'} />}
                         size={Size.XSMALL}
                         onPointerDown={e =>
                             setupMoveUpEvents(
@@ -132,13 +132,14 @@ export class SchemaRowBox extends ViewBoxBaseComponent<SchemaRowBoxProps>() {
                                 emptyFunction,
                                 undoable(e => {
                                     e.stopPropagation();
-                                    Doc.toggleLockedPosition(this.Document);
+                                    this._props.removeDocument?.(this.Document);
                                 }, 'Delete Row')
                             )
-                        }></IconButton>
+                        }
+                    />
                     <IconButton
-                        tooltip="close"
-                        icon={<CgClose size={'16px'} />}
+                        tooltip="whether document interactions are enabled"
+                        icon={this.Document._lockedPosition ? <CgLockUnlock size="12px" /> : <CgLock size="12px" />}
                         size={Size.XSMALL}
                         onPointerDown={e =>
                             setupMoveUpEvents(
@@ -148,11 +149,10 @@ export class SchemaRowBox extends ViewBoxBaseComponent<SchemaRowBoxProps>() {
                                 emptyFunction,
                                 undoable(e => {
                                     e.stopPropagation();
-                                    this._props.removeDocument?.(this.Document);
+                                    Doc.toggleLockedPosition(this.Document);
                                 }, 'Delete Row')
                             )
-                        }
-                    />
+                        }></IconButton>
                     <IconButton
                         tooltip="open preview"
                         icon={<FaExternalLinkAlt />}
-- 
cgit v1.2.3-70-g09d2

