Skip to content

Commit

Permalink
fix: eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ghuisma committed Sep 18, 2024
1 parent 6b1d17f commit eeaabe4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const isValidURL = (value: string) => {
return true;
}
return "URL must have a protocol of 'https://' or 'http://' with 'localhost' hostname.";
} catch (error) {
} catch {
return 'Invalid URL format. Please provide a valid URL.';
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ export const BulkEditor = () => {
} else {
sdk.notifier.warning(`Could not apply the bulk ${name} action to any of the selected entries.`);
}
} catch (error) {
} catch {
sdk.notifier.error(`Failed to send the bulk ${name} action to your ${appConfig.name} account. Please check the app configuration.`);
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/xillio-transcreate/src/locations/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export const Sidebar = () => {
};
}
setTasksByLocale(newTasksByLocale);
} catch (error) {
} catch {
sdk.notifier.error(`Failed to send the ${name} action to your ${appConfig.name} account. Please check the app configuration.`);
}
};
Expand Down
1 change: 0 additions & 1 deletion apps/xillio-transcreate/src/providers/DialogProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ReactNode, createContext } from 'react';
import { DialogInvocationParameters, openDialog } from '../locations';
import { BaseAppSDK } from '@contentful/app-sdk';
import { useSDK } from '@contentful/react-apps-toolkit';

export type OpenDialogContextType = (parameters: DialogInvocationParameters) => Promise<any>;
Expand Down

0 comments on commit eeaabe4

Please sign in to comment.