Skip to content

Commit 2b5fe60

Browse files
Refactor export button rendering in DatabaseHeader
1 parent 224bd43 commit 2b5fe60

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

apps/web-dashboard/src/components/Database/DatabaseHeader.jsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,11 @@ const DatabaseHeader = ({
107107

108108

109109
{activeCollection?.name !== 'users' && (
110-
+ <button onClick={onExport} disabled={isExporting} className="btn btn-secondary" style={{ padding: '6px 12px', height: '32px', gap: '6px', fontSize: '0.75rem' }}>
111-
+ <Download size={14} /> Export
112-
+ </button>
113-
+ )}
110+
<button onClick={onExport} disabled={isExporting} className="btn btn-secondary" style={{ padding: '6px 12px', height: '32px', gap: '6px', fontSize: '0.75rem' }}>
111+
<Download size={14} /> Export
112+
</button>
113+
114+
)}
114115

115116

116117

0 commit comments

Comments
 (0)