mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-05 23:44:22 +00:00
Refactor imports and handle async operations in components
This commit is contained in:
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user