From 4b6dfd863e2696d9446b99705ad0c04a474e9788 Mon Sep 17 00:00:00 2001 From: Judah Meek Date: Thu, 15 Aug 2024 16:47:57 -0500 Subject: [PATCH] ci fixes --- spec/dummy/client/app/packs/client-bundle.js | 8 +------- spec/dummy/client/app/startup/HelloTurboStream.jsx | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/spec/dummy/client/app/packs/client-bundle.js b/spec/dummy/client/app/packs/client-bundle.js index 9de15b583..98d54618a 100644 --- a/spec/dummy/client/app/packs/client-bundle.js +++ b/spec/dummy/client/app/packs/client-bundle.js @@ -8,15 +8,9 @@ import ReactOnRails from 'react-on-rails'; import SharedReduxStore from '../stores/SharedReduxStore'; -import HelloTurboStream from '../startup/HelloTurboStream'; - ReactOnRails.setOptions({ traceTurbolinks: true, - turbo: true -}); - -ReactOnRails.register({ - HelloTurboStream + turbo: true, }); ReactOnRails.registerStore({ diff --git a/spec/dummy/client/app/startup/HelloTurboStream.jsx b/spec/dummy/client/app/startup/HelloTurboStream.jsx index a44646e4d..5125044f8 100644 --- a/spec/dummy/client/app/startup/HelloTurboStream.jsx +++ b/spec/dummy/client/app/startup/HelloTurboStream.jsx @@ -1,5 +1,5 @@ import PropTypes from 'prop-types'; -import React from 'react'; +import React, { useState, useRef } from 'react'; import RailsContext from '../components/RailsContext'; import css from '../components/HelloWorld.module.scss';