Refactor imports and handle async operations in components

This commit is contained in:
2025-05-23 22:13:25 +02:00
parent 646a897b93
commit ad2334c414
5 changed files with 59 additions and 51 deletions

View File

@@ -61,7 +61,11 @@ const FileActions: React.FC<FileActionsProps> = ({
<ActionIcon
variant="default"
size="md"
onClick={handlePullChanges}
onClick={() => {
handlePullChanges().catch((error) => {
console.error('Error pulling changes:', error);
});
}}
disabled={!settings.gitEnabled}
>
<IconGitPullRequest size={16} />