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

V3 Asset, Avatar, and Profile #218

Merged
merged 3 commits into from
Feb 5, 2024
Merged

V3 Asset, Avatar, and Profile #218

merged 3 commits into from
Feb 5, 2024

Conversation

quietbits
Copy link
Contributor

  • Updated Asset, Avatar, and Profile components.
  • Updated type rendering on the website to support new type structure when using discriminated unions.
  • Added updateRelated optional prop in preview to allow updating another prop (also related to discriminated unions).

};

/** */
export type AssetProps = (SingleAssetProps | MultiAssetProps) & AssetBaseProps;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I experimented with using discriminated unions to have a better developer experience when using props that can't be used together. For example, a single asset can't have sourceTwo prop. This makes prop rendering on the website a bit more complicated, but overall it's a better experience when using the component.

@stellar-jenkins
Copy link

@quietbits quietbits changed the title V3 asset avatar profile V3 Asset, Avatar, and Profile Feb 2, 2024
@quietbits quietbits merged commit 62abd62 into sds-v3 Feb 5, 2024
2 checks passed
@quietbits quietbits deleted the v3-asset-avatar-profile branch February 5, 2024 13:44
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