Skip to content

Commit

Permalink
Remove unused dep: sweetalert2 (#1711)
Browse files Browse the repository at this point in the history
  • Loading branch information
whabanks authored Nov 8, 2023
1 parent 426ef4c commit aa0df0b
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 51 deletions.
2 changes: 0 additions & 2 deletions app/assets/javascripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import Polyglot from "node-polyglot";
//REVIEW: The app already has dayjs dep which is supposed to be a lightweight momentjs replacement. --jlr
import Moment from "moment";
import { DiffDOM } from "diff-dom";
import Swal from "sweetalert2";

if (!window.APP_PHRASES || typeof APP_PHRASES === "undefined") {
window.APP_PHRASES = {
Expand All @@ -21,7 +20,6 @@ window.polyglot = new Polyglot({
phrases: APP_PHRASES || {},
locale: APP_LANG,
});
window.Swal = Swal;

let nowLabel = "Now Label";

Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/main.min.js

Large diffs are not rendered by default.

38 changes: 0 additions & 38 deletions app/templates/views/edit-email-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,42 +84,4 @@
};
</script>

<style type="text/css" nonce="{{ request_nonce }}">
select {
box-sizing: "border-box";
width: 50%;
height: 33px;
padding: 5px 4px 4px;
border: 2px solid #000;
font-size: 1.5rem;
}

.confirm-container-class {
font-size: 2rem;
}

.confirm-container-class .swal2-title {
color: #000;
font-size: 2.5rem;
}

.confirm-container-class .swal2-content {
color: #000;
font-size: 1.8rem;
}

.confirm-container-class .swal2-actions {
font-size: 1.8rem;
}

.confirm-container-class button {
margin: 0 1.5rem 1rem;
line-height: 2rem;
}

.confirm-container-class .swal2-title strong {
font-weight: 900;
}
</style>

{% endblock %}
9 changes: 0 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"query-command-supported": "1.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"sweetalert2": "^9.17.2",
"textarea-caret": "3.1.0"
},
"devDependencies": {
Expand Down

0 comments on commit aa0df0b

Please sign in to comment.