Skip to content

Commit

Permalink
Fixed JS
Browse files Browse the repository at this point in the history
  • Loading branch information
yatish27 committed Jun 6, 2024
1 parent bccae1f commit 2045f30
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
10 changes: 5 additions & 5 deletions app/frontend/controllers/application.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Application } from "@hotwired/stimulus"
import { Application } from "@hotwired/stimulus";

const application = Application.start()
const application = Application.start();

// Configure Stimulus development experience
application.debug = false
window.Stimulus = application
application.debug = false;
window.Stimulus = application;

export { application }
export { application };
4 changes: 2 additions & 2 deletions app/frontend/controllers/hello_controller.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Controller } from "@hotwired/stimulus"
import { Controller } from "@hotwired/stimulus";

export default class extends Controller {
connect() {
this.element.textContent = "Hello 👋"
this.element.textContent = "Hello 👋";
}
}
1 change: 0 additions & 1 deletion app/frontend/stylesheets/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
@import "tailwindcss/utilities";

@import "base";

1 change: 0 additions & 1 deletion app/views/components/basic_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ def initialize(version:)
end

def view_template(&)
p(class: "text-lg text-gray-600") { "Hello from Phlex #{@version} 💪🏼" }
end
end

0 comments on commit 2045f30

Please sign in to comment.