CSCfi / CSCfi/rems

Consider adding higher-order components for visibility of e.g. action buttons.

Open
#2,659 0 comments 0 reactions 0 assignees View on GitHub
Technical Debt
Dominant language
Clojure
Stars
66
Forks
28
Avg merge
7d 4h
Merged PRs (30d)
2

Description

Currently some top level container component does the logic, and passes a `can-xxx?` parameter to a view component. Some of these could be automated / made a pattern. We trust the `text` component, which is not actually a purely functional view component, to be used inside other "purely functional view components". Following the same logic we could have our own framework-y higher-order components that help in implementing our common "is component visible to this role" or "is action enabled here" type of situations.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.