Skip to content

Add Animate component#7854

Merged
MarkusPettersson98 merged 1 commit intomainfrom
create-animateheight-component-des-1897
Mar 26, 2025
Merged

Add Animate component#7854
MarkusPettersson98 merged 1 commit intomainfrom
create-animateheight-component-des-1897

Conversation

@olmoh
Copy link
Collaborator

@olmoh olmoh commented Mar 20, 2025

This change is Reviewable

@linear
Copy link

linear bot commented Mar 20, 2025

@olmoh olmoh force-pushed the create-animateheight-component-des-1897 branch from b0f3b12 to 98e046c Compare March 20, 2025 16:55
@olmoh
Copy link
Collaborator Author

olmoh commented Mar 21, 2025

Makes sense to add some sort of duration parameter to the component, but since we don't have any duration tokens specified at the moment I have left that out for now.

@olmoh olmoh requested a review from tobias-jarvelov March 21, 2025 07:55
case 'present-vertical':
return <AnimatePresentVertical {...props} />;
default:
return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

In case you want to exhaust your switch and get a type-error when it is not:

Suggested change
return null;
return type satisfies never;

I know it goes against your return null but since it should never happen...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good suggestion, have implemented this. Thanks for the feedback! :)

@olmoh olmoh force-pushed the create-animateheight-component-des-1897 branch 2 times, most recently from f123d08 to 7a32491 Compare March 25, 2025 12:54
@olmoh olmoh requested a review from tobias-jarvelov March 25, 2025 12:55
Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 4 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @MrChocolatine)

@MarkusPettersson98 MarkusPettersson98 force-pushed the create-animateheight-component-des-1897 branch from 7a32491 to 325c699 Compare March 26, 2025 14:25
@MarkusPettersson98 MarkusPettersson98 merged commit 9e2db7a into main Mar 26, 2025
11 of 12 checks passed
@MarkusPettersson98 MarkusPettersson98 deleted the create-animateheight-component-des-1897 branch March 26, 2025 14:28
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.

4 participants