Skip to content

Commit

Permalink
bump toast down a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
samlhuillier committed Jan 22, 2024
1 parent 35d0b97 commit acf87df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const App: React.FC<AppProps> = () => {
const handleIndexingError = (error: string) => {
console.log("Indexing error:", error);
toast.error(error, {
className: "mt-5",
autoClose: false,
closeOnClick: false,
draggable: false,
Expand Down
4 changes: 3 additions & 1 deletion src/components/FileEditorContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ const FileEditorContainer: React.FC<FileEditorContainerProps> = () => {
try {
await window.files.writeFile(selectedFilePath, editorContent); // save the current content.
} catch (e) {
toast.error("Error saving current file! Please try again.");
toast.error("Error saving current file! Please try again.", {
className: "mt-5",
});
return;
}
}
Expand Down

0 comments on commit acf87df

Please sign in to comment.