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

feat: Add a loading indicator with a tick for the API Key Generation field at the Setup Analytics modal gf-189 #568

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

perekotypole
Copy link
Collaborator

idle view:
image

fulfilled view:
image

Comment on lines +137 to +145
{...(isKeyGenerated
? {
leftIcon: (
<div className={styles["generated-key-indicator"]}>
<Icon height={20} name="check" width={20} />
</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.

@liza-veis I'm not sure about this

									leftIcon: {
										isKeyGenerated ? <div className={styles["generated-key-indicator"]}>
											<Icon height={20} name="check" width={20} />
										</div> : <></> (or undefined)
									},

The code above looks better, but it doesn't work properly. So it's a solution, but I don't like the way the code looks.

Copy link
Collaborator

Choose a reason for hiding this comment

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

we can use && here instead of ?, this will simplify it a bit

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@liza-veis I tried, but...
image

Copy link
Collaborator

Choose a reason for hiding this comment

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

in this case, let's leave it as it is

@liza-veis liza-veis merged commit d4b2d82 into main Sep 27, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

2 participants