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

Remove CW20 tags from assets page (frontier) #758 #759

Merged
merged 5 commits into from
Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/web/components/table/assets-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ export const AssetsTable: FunctionComponent<Props> = ({
value && value.toDec().gt(new Dec(0))
? value?.toDec().toString()
: "0",
isCW20,
queryTags: [
...(isCW20 ? ["CW20"] : []),
...(pegMechanism ? ["stable", pegMechanism] : []),
Expand Down
6 changes: 0 additions & 6 deletions packages/web/components/table/cells/asset-name.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const AssetNameCell: FunctionComponent<Partial<Cell>> = ({
coinDenom,
chainName,
coinImageUrl,
isCW20 = false,
isUnstable,
}) =>
coinDenom ? (
Expand All @@ -21,11 +20,6 @@ export const AssetNameCell: FunctionComponent<Partial<Cell>> = ({
<div className="flex flex-col place-content-center">
<div className="flex">
<span className="subtitle1 text-white-high">{coinDenom}</span>
{isCW20 && (
<div className="ml-2 px-2 py-1 rounded-full font-title text-xs bg-primary-200">
CW20
</div>
)}
</div>
{chainName && (
<span className="body2 text-iconDefault">{chainName}</span>
Expand Down
1 change: 0 additions & 1 deletion packages/web/components/table/cells/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export type AssetCell = BaseCell & {
coinImageUrl?: string;
amount: string;
fiatValue?: string;
isCW20: boolean;
/** Used by `useFilteredData` to provide user query terms to help users find this cell in the table.
* Be sure to add `"queryTags"` to the keys param.
*/
Expand Down