Skip to content

Commit

Permalink
Using bundled bootstrap.native types
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Oct 14, 2024
1 parent 16f5af0 commit 05f6a2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend/ts/ModalExtension.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import BSN from 'bootstrap.native';
import { Modal } from 'bootstrap.native';

export class ModalExtension {
constructor(naja: any) {
Expand All @@ -10,7 +10,7 @@ export class ModalExtension {
return;
}

const modal = new BSN.Modal(snippet);
const modal = new Modal(snippet);

if (snippet.innerHTML === '') {
modal.hide();
Expand Down
4 changes: 2 additions & 2 deletions frontend/ts/ajax.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import BSN from "bootstrap.native";
import { initCallback } from "bootstrap.native";
import naja from 'naja';
// @ts-ignore
import {ProgressBar} from './ProgressBar';
Expand Down Expand Up @@ -27,7 +27,7 @@ export default function (): void {
initializeSendMassForm(snippet, 'chits-');
initializeEditForm(snippet,'chits-');
snippet.querySelectorAll<HTMLElement>('.date').forEach(initializeDatePicker);
BSN.initCallback(snippet);
initCallback(snippet);
});

naja.registerExtension(DataGridExtension);
Expand Down
1 change: 0 additions & 1 deletion frontend/types/bootstrap.native/index.d.ts

This file was deleted.

0 comments on commit 05f6a2f

Please sign in to comment.