Convert isSpeaking from a HOC to an event listener

Repository details (talkie)
Project page
talkie
Project log category
(708 entries)
Repository
@joelpurra/talkie
Owner
@joelpurra
Contributors
Contributors on Github
Project status
⏲️ This project has had recent commits.
📂 This project is open.
🌠 This project is popular.
Repository activity period
🗓
Commits
751 commits
Stars
71 stars
Commit details (ea4bf5fd)
Author
Authored at
Committer
Joel Purra
Committed at

Commit message

Convert isSpeaking from a HOC to an event listener

  • The previous higher order component (HOC) was not used as such.
  • Instead, relabel it as a background event listener.
  • Uses a container to inject actions from the shared speaking slice.
  • Removed isSpeaking from the style root, and the related global classes from the CSS.
Raw text
Convert isSpeaking from a HOC to an event listener

- The previous higher order component (HOC) was not used as such.
- Instead, relabel it as a background event listener.
- Uses a container to inject actions from the shared `speaking` slice.
- Removed `isSpeaking` from the style root, and the related global classes from the CSS.

Changed files (13)

Path Additions Deletions
code/packages/all-renderer/src/render-templates.mts +1 -1
code/packages/popup-application/src/app/main.tsx +3 -0
code/packages/popup-application/src/app/sections/status.tsx +5 -1
code/packages/popup-application/src/containers/app.tsx +8 -11
code/packages/shared-resources/src/resources/style/shared.css +2 -4
code/packages/shared-ui/src/components/listeners/is-speaking-listener.tsx +131 -0
code/packages/shared-ui/src/components/style-root.tsx +1 -11
code/packages/shared-ui/src/containers/is-speaking-listener-container.tsx +81 -0
code/packages/shared-ui/src/containers/state-root.tsx +3 -11
code/packages/shared-ui/src/hocs/is-speaking-types.mts +0 -27
code/packages/shared-ui/src/hocs/is-speaking-updater.tsx +0 -57
code/packages/shared-ui/src/hocs/is-speaking.tsx +0 -173
code/packages/shared-ui/src/slices/speaking.mts +1 -0

Commit categories (3)