-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor asset-list-item to use list-item component (#8725)
* refactor asset items to use list-item Refactors the asset-list-item and token-cell to rely on the list-item component for UI. Little changes were needed to the list-item code to make this work! The result should be lots of eliminated code Co-authored-by: Mark Stacey <[email protected]>
- Loading branch information
1 parent
b902839
commit 591d84d
Showing
16 changed files
with
161 additions
and
306 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
26 changes: 5 additions & 21 deletions
26
ui/app/components/app/asset-list-item/asset-list-item.scss
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 |
---|---|---|
@@ -1,26 +1,10 @@ | ||
.asset-list-item { | ||
&__container { | ||
display: flex; | ||
padding: 24px 16px; | ||
align-items: center; | ||
border-top: 1px solid $mercury; | ||
border-bottom: 1px solid $mercury; | ||
cursor: pointer; | ||
|
||
&:hover { | ||
background-color: $Grey-000; | ||
} | ||
} | ||
|
||
&__balance { | ||
display: flex; | ||
flex-direction: column; | ||
margin-left: 15px; | ||
flex: 1; | ||
min-width: 0; | ||
} | ||
|
||
&__chevron-right { | ||
color: $Grey-500; | ||
} | ||
|
||
.list-item__subheading { | ||
margin-top: 6px; | ||
font-size: 14px; | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
export { default } from './token-cell.container' | ||
export { default } from './token-cell' |
111 changes: 0 additions & 111 deletions
111
ui/app/components/app/token-cell/token-cell.component.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.