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

Add more integration icons to the website #134

Merged
merged 7 commits into from
Dec 17, 2024

Conversation

B-Step62
Copy link
Collaborator

We are only showing 12 libraries on website but we have much more integrations. Adding most of them with expand/collapse.

Signed-off-by: B-Step62 <[email protected]>
Signed-off-by: B-Step62 <[email protected]>
Signed-off-by: B-Step62 <[email protected]>
Copy link

github-actions bot commented Dec 12, 2024

Preview for b00ab22

  • For faster build, the doc pages are not included in the preview.
  • Redirects are disabled in the preview.
Open in StackBlitz

Signed-off-by: B-Step62 <[email protected]>
Signed-off-by: B-Step62 <[email protected]>
Signed-off-by: B-Step62 <[email protected]>
const ExpandableGrid = ({ items, defaultVisibleCount, renderItem }) => {
const [isExpanded, setIsExpanded] = useState(false);

const visibleItems = isExpanded ? items : items.slice(0, defaultVisibleCount);
Copy link
Collaborator

Choose a reason for hiding this comment

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

nits: we could use useMemo here, but it is probably not necessary since this should be a lightweight app and this component won't be rendered for many times.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yea lemme keep it simple here for now

const visibleItems = isExpanded ? items : items.slice(0, defaultVisibleCount);

return (
<div>
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we need this top level div?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not really - can replace with <></>🙂

@TomeHirata
Copy link
Collaborator

Looks good, will defer to others who are more familiar with the repo.

Copy link
Member

@harupy harupy left a comment

Choose a reason for hiding this comment

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

LGTM!

Signed-off-by: B-Step62 <[email protected]>
@B-Step62 B-Step62 merged commit 4cf31ea into main Dec 17, 2024
3 checks passed
@B-Step62 B-Step62 deleted the B-Step62/update-integration-icons branch December 17, 2024 12:58
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.

3 participants