Skip to content

Commit

Permalink
chore(libraries): fix error modal bootstrap (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincenzoDeSisto authored May 28, 2024
1 parent 557f5e3 commit 0c4647b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ import Footer from "./components/layout/Footer/Footer";
import Main from "./components/layout/Main/Main";
import SkipToContent from "./components/layout/SkipToContent/SkipToContent";
import { BrowserRouter } from "react-router-dom";
//import "bootstrap-italia/dist/css/bootstrap-italia.min.css";
import "./global-bootstrap-italia";
import "owl.carousel";
//import "bootstrap-italia";

import React, { useRef } from "react";

function App() {
Expand Down
2 changes: 2 additions & 0 deletions src/global-bootstrap-italia.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import jquery from "jquery";
import Popper from "popper.js";
import Modal from "bootstrap/js/dist/modal";

window.__PUBLIC_PATH__ = "/fonts";
window.Popper = Popper;
window.jQuery = jquery;
window.jquery = jquery;
window.Modal = Modal;
window.$ = jquery;
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import "./styles/index.css";
import App from "./App";
import { loadFonts } from "bootstrap-italia";

// import "bootstrap-italia/dist/css/bootstrap-italia.min.css";
// import "bootstrap-italia/dist/js/bootstrap-italia.min.js";

loadFonts("/bootstrap-italia/dist/fonts");

const root = ReactDOM.createRoot(document.getElementById("root"));
Expand Down
1 change: 0 additions & 1 deletion src/styles/bootstrap-italia-comuni.min.css

This file was deleted.

0 comments on commit 0c4647b

Please sign in to comment.