Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: ActiveSources + type Sources #82

Merged
merged 4 commits into from
Mar 5, 2025
Merged

Conversation

SYoy
Copy link
Collaborator

@SYoy SYoy commented Mar 5, 2025

Changed

  • Fixed type activeSource to be initially null and can be set to Source[] or [] by user
  • added props ".href" and ".description" to Source for display in SourcesDisplay
  • added button in SourcesDisplay to follow href
  • styled source in SourcesDisplay

SYoy added 2 commits March 5, 2025 09:01
## Changed
- Fixed type activeSource to be initially null and can be set to Source[] or [] by user
- added prop .href .description to Source
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allow setting null from hook?

// Otherwise use the filtered sources from activeSourcesAtom
const activeSources = activeSourcesIds.length === 0
? retrievedSources
const activeSources = activeSourcesIds === null
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does the atom not return null either way? handling at two places?

@dani2112
Copy link
Collaborator

dani2112 commented Mar 5, 2025

test failing, check why and fix

@dani2112 dani2112 merged commit 5ac75b4 into main Mar 5, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants