rspace-os / rspace-web

This the main repository for RSpace: rspace-web. Check https://github.com/rspace-os/rspace-web/blob/main/DevDocs/DeveloperNotes/GettingStarted/GettingStarted.md for setup instructions.
https://github.com/rspace-os/rspace-web/wiki
GNU Affero General Public License v3.0
15 stars 3 forks source link

RSDEV-381 Define usePrimaryAction hook to ensure UI consistency #168

Closed rlamacraft closed 1 month ago

rlamacraft commented 1 month ago

Double clicking the file card and the button in the info panel should have the same behaviour, in that given a file of a specific type and a set of configured integrations (office online, collabora, aspose) the two UI elements should present the user with the same means of previewing the file.

To achieve this, this change adds a new custom hook that wraps all of the previously defined hooks for previewing gallery files.