Skip to content

chore: remove Maybe #9880

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

Merged
merged 5 commits into from
Sep 27, 2023
Merged

chore: remove Maybe #9880

merged 5 commits into from
Sep 27, 2023

Conversation

aslilac
Copy link
Member

@aslilac aslilac commented Sep 26, 2023

Y'know, maybe it's time to get rid of Maybe

Copy link
Member

@Parkreiner Parkreiner left a comment

Choose a reason for hiding this comment

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

Hey, I just met you
And this is crazy
But we like braces
So goodbye Maybe

@@ -97,58 +96,65 @@ export const SignInForm: FC<React.PropsWithChildren<SignInFormProps>> = ({
<h1 className={styles.title}>
Sign in to <strong>Coder</strong>
</h1>
<Maybe condition={error !== undefined}>

{Boolean(error) && (
Copy link
Member

@Parkreiner Parkreiner Sep 26, 2023

Choose a reason for hiding this comment

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

They're subtle changes, but I'm a big fan of you changing the conditions to catch any falsey value, instead of undefined, especially with the errors being of type unknown

Copy link
Member

@Kira-Pilot Kira-Pilot left a comment

Choose a reason for hiding this comment

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

Thanks for taking this on! I'd love your thoughts on our <Cond /> component.

@aslilac aslilac merged commit 066b25f into main Sep 27, 2023
@aslilac aslilac deleted the for-sure branch September 27, 2023 16:45
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants