-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fda1b99
commit 732ecf3
Showing
14 changed files
with
714 additions
and
653 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<template> | ||
<price-chart-widget :base-asset="tokenFrom" :quote-asset="tokenTo" :is-available="isAvailable" /> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Mixins } from 'vue-property-decorator'; | ||
import { Components } from '@/consts'; | ||
import { lazyComponent } from '@/router'; | ||
import { getter, state } from '@/store/decorators'; | ||
import type { AccountAsset } from '@sora-substrate/util/build/assets/types'; | ||
@Component({ | ||
components: { | ||
PriceChartWidget: lazyComponent(Components.PriceChartWidget), | ||
}, | ||
}) | ||
export default class SwapChartWidget extends Mixins() { | ||
@state.swap.isAvailable isAvailable!: boolean; | ||
@getter.swap.tokenFrom tokenFrom!: Nullable<AccountAsset>; | ||
@getter.swap.tokenTo tokenTo!: Nullable<AccountAsset>; | ||
} | ||
</script> |
Oops, something went wrong.