Update prettier to v2.0.1 and enable for SCSS (#420)

This commit is contained in:
InfiniteTF
2020-04-03 01:29:33 +02:00
committed by GitHub
parent ad7bfb8dbf
commit 66cb7f4928
98 changed files with 1365 additions and 1299 deletions

View File

@@ -18,9 +18,9 @@ export const ToastProvider: React.FC = ({ children }) => {
const [toasts, setToasts] = useState<IActiveToast[]>([]);
const removeToast = (id: number) =>
setToasts(toasts.filter(item => item.id !== id));
setToasts(toasts.filter((item) => item.id !== id));
const toastItems = toasts.map(toast => (
const toastItems = toasts.map((toast) => (
<Toast
autohide
key={toast.id}
@@ -55,9 +55,9 @@ function createHookObject(toastFunc: (toast: IToast) => void) {
toastFunc({
variant: "danger",
header: "Error",
content: error.message ?? error.toString()
content: error.message ?? error.toString(),
});
}
},
};
}