-
Notifications
You must be signed in to change notification settings - Fork 192
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: Buy
component
#1729
Merged
Merged
feat: Buy
component
#1729
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
3b1985f
initial commit
alissacrane-cb 38b978d
fix typo
alissacrane-cb 4d2accf
lint
alissacrane-cb b3474a8
fix lint
alissacrane-cb 75a16d4
fix imports
alissacrane-cb ee0f7bc
adjust swap quote functionality
alissacrane-cb de3805d
fix swap test
alissacrane-cb 9e98425
adjust svgs
alissacrane-cb fd8241f
adjust imports
alissacrane-cb 1672671
adjust hook behavior
alissacrane-cb 7f8cdc4
add popup monitor
alissacrane-cb 9570480
fix optional params - revisit
alissacrane-cb 2303671
remove unused file
alissacrane-cb 1f5d208
add leading 0
alissacrane-cb ddf3654
fix swap error
alissacrane-cb 6b34326
remove SwapLite components
alissacrane-cb 62f9586
add buy components
alissacrane-cb 63f4717
add test coverage
alissacrane-cb eb0d0ac
remove unused code
alissacrane-cb 64decc8
remove exit handler
alissacrane-cb 66545a6
adjust imports
alissacrane-cb 1e65878
add test coverage
alissacrane-cb 8194392
add test coverage
alissacrane-cb e792579
fix imports and lint
alissacrane-cb 0cee0d3
fix import
alissacrane-cb 40e8074
update import
alissacrane-cb 24c5d01
throw error if no project id
alissacrane-cb 12c5ae7
fix import
alissacrane-cb 676fed9
fix imports
alissacrane-cb a30f64e
remove console log
alissacrane-cb e2837e7
add comments
alissacrane-cb d60b789
add test coverage
alissacrane-cb 404a730
add test coverage
alissacrane-cb 42d3a11
add test coverage
alissacrane-cb fe9c92b
remove uneccesary error
alissacrane-cb 215761b
remove project id
alissacrane-cb c7b0e8c
address pr comments
alissacrane-cb a43a105
fix lint
alissacrane-cb c9daec4
fix tests
alissacrane-cb 322db40
refactor useOnrampeventlistener
alissacrane-cb ad8be9d
add test coverage
alissacrane-cb ebf9200
add test coverage
alissacrane-cb 81e7ae4
add test coverage
alissacrane-cb ddd20db
add test coverage
alissacrane-cb e8672f6
re require transactionReceipt
alissacrane-cb 0b88800
fix test
alissacrane-cb ec56e5a
update buy button
alissacrane-cb 0e306b5
add quote validation
alissacrane-cb 727e826
validate quote
alissacrane-cb 27320d9
adjust styling
alissacrane-cb a082d8e
fix lint
alissacrane-cb 8117757
add test coverage
alissacrane-cb 8c13dd2
add test coverage
alissacrane-cb ede2e92
add test coverage
alissacrane-cb 96de464
fix lint
alissacrane-cb 727bb99
add changelog
alissacrane-cb 1090562
address qa comments
alissacrane-cb bbda91a
fix test
alissacrane-cb dc415b8
add z index
alissacrane-cb 4843432
fix lint
alissacrane-cb 5b3afb3
add missing required fields message and address pr comments
alissacrane-cb 7c63536
add test coverage
alissacrane-cb 19512c4
fix lint
alissacrane-cb 1cf2f1a
fix test and build
alissacrane-cb d527a6b
remove unsued code
alissacrane-cb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ export function BuyTokenItem({ swapUnit }: { swapUnit?: SwapUnit }) { | |
<button | ||
className={cn( | ||
'flex items-center gap-2 rounded-lg p-2', | ||
!hasInsufficientBalance && 'hover:bg-[var(--ock-bg-inverse)]', | ||
!hasInsufficientBalance, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is this doing? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nothing removing |
||
)} | ||
onClick={handleClick} | ||
type="button" | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason to not just always show the error.message on errors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in other components we only show
Something went wrong...
so i'm keeping consistent for now and will investigate better errors in follow up but it might be something we want to change for all our components.