Skip to content

Commit 99d90fd

Browse files
committed
Install sweet alerts
1 parent febb288 commit 99d90fd

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

package-lock.json

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
"react": "18.2.0",
2121
"react-dom": "18.2.0",
2222
"react-hook-form": "^7.43.5",
23+
"sweetalert2": "^11.7.3",
24+
"sweetalert2-react-content": "^5.0.7",
2325
"tailwind-merge": "^1.10.0",
2426
"typescript": "4.9.5",
2527
"wretch": "^2.5.1",

src/utils/swal.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import Swal from "sweetalert2";
2+
import withReactContent from "sweetalert2-react-content";
3+
4+
const swal = withReactContent(Swal);
5+
6+
export default swal;

0 commit comments

Comments
 (0)