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

Tom/info component #344

Merged
merged 18 commits into from
Jun 21, 2022
Merged

Tom/info component #344

merged 18 commits into from
Jun 21, 2022

Conversation

tomjeatt
Copy link
Collaborator

@tomjeatt tomjeatt commented Jun 17, 2022

This PR adds an info box component. This uses the primary CTA to avoid creating an outline CTA variant (discussed this with Jay and he didn't want to introduce the additional variant).

This component renders at full width; when used, it will be constrained and positioned by the parent element. A CTA will be rendered if a ctaOnClick prop is passed.
Screenshot 2022-06-20 at 09 07 05
Screenshot 2022-06-20 at 09 07 11
Screenshot 2022-06-20 at 09 07 18
Screenshot 2022-06-20 at 09 07 22

@vercel
Copy link

vercel bot commented Jun 17, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
interbtc-ui-interlay ✅ Ready (Inspect) Visit Preview Jun 21, 2022 at 0:10AM (UTC)
interbtc-ui-interlay-testnet ✅ Ready (Inspect) Visit Preview Jun 21, 2022 at 0:10AM (UTC)
interbtc-ui-kintsugi ✅ Ready (Inspect) Visit Preview Jun 21, 2022 at 0:10AM (UTC)
interbtc-ui-kintsugi-testnet ✅ Ready (Inspect) Visit Preview Jun 21, 2022 at 0:10AM (UTC)

@github-actions
Copy link

Running Lighthouse audit...

@vercel
Copy link

vercel bot commented Jun 17, 2022

Deployment failed with the following error:

Creating the Deployment Timed Out.

Copy link
Contributor

@peterslany peterslany left a comment

Choose a reason for hiding this comment

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

Hi @tomjeatt, very nice and simple solution :) Left just a little comment there

src/componentLibrary/InfoBox/InfoBox.tsx Show resolved Hide resolved
src/componentLibrary/InfoBox/InfoBox.tsx Outdated Show resolved Hide resolved
@tomjeatt tomjeatt requested a review from peterslany June 21, 2022 08:15
Copy link
Contributor

@peterslany peterslany left a comment

Choose a reason for hiding this comment

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

👍

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.

None yet

2 participants