forked from vegaprotocol/frontend-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(trading): deposit form order (#43)
* fix: svg attributes in jsx * fix(trading): alignment of input and dropdowns in market filter (vegaprotocol#7037) * feat: change order of fields on depsoit form * chore: remove incorrect asset warning * fix: position of node health indicator * feat: change field order and tidy up * feat: add targeted asset for squid onboard form * fix: make from asset not required when depositing without squid * feat: remove squid from onboarding * test: fix tvl test which requires specific id --------- Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
- Loading branch information
1 parent
8327619
commit 0778bff
Showing
20 changed files
with
159 additions
and
214 deletions.
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
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
16 changes: 16 additions & 0 deletions
16
apps/trading/components/deposit-container/fields/to-asset-targeted.tsx
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { FormGroup } from '@vegaprotocol/ui-toolkit'; | ||
import { AssetOption } from '../../asset-option'; | ||
import { type AssetERC20 } from '@vegaprotocol/assets'; | ||
import { useT } from '../../../lib/use-t'; | ||
|
||
export const ToAssetTargeted = (props: { | ||
toAsset: AssetERC20; | ||
balance: string; | ||
}) => { | ||
const t = useT(); | ||
return ( | ||
<FormGroup label={t('Asset')} labelFor="asset"> | ||
<AssetOption asset={props.toAsset} balance={props.balance} /> | ||
</FormGroup> | ||
); | ||
}; |
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
Oops, something went wrong.