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

Unification buttons link in dapp #185

Merged
merged 7 commits into from
Jan 26, 2024
Merged

Unification buttons link in dapp #185

merged 7 commits into from
Jan 26, 2024

Conversation

ioay
Copy link
Contributor

@ioay ioay commented Jan 18, 2024

Closes: #177

Adjusting design of buttonLink to the newest guidelines buttons:
https://www.figma.com/file/OUdSfHsmgV8EJpWxAzXjl5/Design-Tasks?node-id=2394%3A25690&mode=dev

@ioay ioay self-assigned this Jan 18, 2024
dapp/src/theme/Button.ts Outdated Show resolved Hide resolved
@ioay ioay requested a review from kkosiorowska January 25, 2024 17:24
kkosiorowska
kkosiorowska previously approved these changes Jan 26, 2024
Copy link
Contributor

@kkosiorowska kkosiorowska left a comment

Choose a reason for hiding this comment

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

LGTM, let's resolve conflicts and we are ready for merge. 🚢

import { USD } from "#/constants"
import PositionDetails from "./PositionDetails"
import Statistics from "./Statistics"
import TransactionHistory from "./TransactionHistory"
import ButtonLink from "../shared/ButtonLink"
Copy link
Contributor

Choose a reason for hiding this comment

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

Non-blocking comment

I just noticed that we are not using aliases here. However, the TextSm component is already imported from #/components/shared/Typography. When should we use aliases in this case? It would be good to standardize it in code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, good catch, my IDE added imports automatically. Updated path for Typography. I think the IDE does it correctly and in case of child/parent nesting we should use a relative path.

@ioay ioay merged commit 3b0662e into main Jan 26, 2024
11 checks passed
@ioay ioay deleted the dapp-unify-buttons-link branch January 26, 2024 09:15
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.

Changing dApp buttons to shared component ButtonLink
2 participants