Skip to content

Commit b69af74

Browse files
authored
Merge pull request #221 from saksham-gera/alert_issue
Alert Issue Fixed #217
2 parents 767865e + 8e52f16 commit b69af74

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/component/modals/FileEdit.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react';
22
import Editor from '@monaco-editor/react';
33
import { saveAs } from 'file-saver';
44
import Modal from './ParentModal';
5+
import { toast } from 'react-toastify';
56
import './file-edit.css';
67
import { actionType as T } from '../../reducer';
78

@@ -29,7 +30,7 @@ const FileEditModal = ({ superState, dispatcher }) => {
2930
await stream.write(codeStuff);
3031
await stream.close();
3132
} else {
32-
alert('Switch to Edge/Chrome!');
33+
toast.warn('Switch to Edge/Chrome!');
3334
}
3435
dispatcher({ type: T.EDIT_TEXTFILE, payload: { show: false } });
3536
}

0 commit comments

Comments
 (0)