Skip to content

Commit

Permalink
Fix up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
benr77 committed Sep 7, 2022
1 parent edb0608 commit ff21f4d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.idea
yarn.lock
node_modules
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "@headsnet/stimulus-controllers",
"version": "0.1.0",
"version": "0.1.1",
"description": "A collection of reusable Stimulus JS controllers",
"repository": "https://github.com/headsnet/stimulus-controllers",
"author": "Ben Roberts",
"license": "MIT",
"private": false,
"module": "src/index.js",
"dependencies": {
"@hotwired/stimulus": "^3.0.0",
"stimulus-use": "^0.50.0"
Expand Down
2 changes: 1 addition & 1 deletion src/controller/confirm-submit-controller.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Controller } from '@hotwired/stimulus';
import { useClickOutside } from 'stimulus-use';

export default class extends Controller {
export class ConfirmSubmitController extends Controller {

static classes = [ 'warning' ];
static values = { confirmationLabel: String };
Expand Down
2 changes: 2 additions & 0 deletions src/controller/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

export * from './confirm-submit-controller';
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

export * from "./controller";

0 comments on commit ff21f4d

Please sign in to comment.