Skip to content

Commit

Permalink
Disabled export when changes available
Browse files Browse the repository at this point in the history
  • Loading branch information
vydimitrov committed Jul 23, 2024
1 parent d329f8b commit f932f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function Index() {
{({ isRemoveDisabled, onRemoveSelected, hasChanges, getChangedComponents }) => {
const actions = [
{ key: 'import', name: 'Import', onSelect: () => {} },
{ key: 'export', name: 'Export', onSelect: () => {} },
{ key: 'export', name: 'Export', disabled: hasChanges, onSelect: () => {} },
{ ...removeAction, disabled: isRemoveDisabled, onSelect: onRemoveSelected },
];

Expand Down

0 comments on commit f932f66

Please sign in to comment.