Skip to content

Commit

Permalink
global bootstrap added
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdusshakur committed Sep 7, 2024
1 parent 048af32 commit 43efa63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/js/app.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import './bootstrap';
import './config';

import $ from 'jquery'; // Import jQuery
import 'bootstrap/dist/js/bootstrap.bundle.min.js';
import $ from 'jquery';
import 'bootstrap/dist/css/bootstrap.min.css';

import bootstrap from 'bootstrap/dist/js/bootstrap.bundle.min';

import { createRoot } from 'react-dom/client'
import { createInertiaApp } from '@inertiajs/inertia-react'
Expand All @@ -13,7 +12,8 @@ import { Link } from "@inertiajs/inertia-react";

window.Inertia = Inertia;
window.Link = Link;
window.$ = $; // Make jQuery available globally
window.$ = $;
window.bootstrap = bootstrap;

createInertiaApp({
resolve: name => {
Expand Down

0 comments on commit 43efa63

Please sign in to comment.