Skip to content

Commit

Permalink
change swap widgets folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Polyakov committed Mar 5, 2024
1 parent 0be2a13 commit 375de5a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const MARKETS = {
ValueStatusWrapper: lazyComponent(Components.ValueStatusWrapper),
},
})
export default class SwapDistribution extends Mixins(mixins.FormattedAmountMixin, TranslationMixin) {
export default class SwapDistributionWidget extends Mixins(mixins.FormattedAmountMixin, TranslationMixin) {
@state.swap.distribution private distribution!: Distribution[][];
@getter.assets.assetDataByAddress private getAsset!: (addr?: string) => Nullable<AccountAsset>;
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/consts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,15 @@ export enum Components {
X1Dialog = 'pages/X1/X1Dialog',
X1History = 'pages/X1/X1History',
// Swap Page
SwapFormWidget = 'pages/Swap/Form/Widget',
SwapChartWidget = 'pages/Swap/ChartWidget',
SwapTransactionsWidget = 'pages/Swap/TransactionsWidget',
SwapFormWidget = 'pages/Swap/Widget/Form',
SwapChartWidget = 'pages/Swap/Widget/Chart',
SwapTransactionsWidget = 'pages/Swap/Widget/Transactions',
SwapDistributionWidget = 'pages/Swap/Widget/Distribution',
SwapConfirm = 'pages/Swap/Confirm',
SwapStatusActionBadge = 'pages/Swap/StatusActionBadge',
SwapTransactionDetails = 'pages/Swap/TransactionDetails',
SwapSettings = 'pages/Swap/Settings/Settings',
SwapLossWarningDialog = 'pages/Swap/LossWarningDialog',
SwapDistribution = 'pages/Swap/Distribution',
// Order Book
BookWidget = 'pages/OrderBook/BookWidget',
SetLimitOrderWidget = 'pages/OrderBook/SetLimitOrderWidget',
Expand Down
2 changes: 1 addition & 1 deletion src/views/Swap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import type { AccountAsset } from '@sora-substrate/util/build/assets/types';
SwapFormWidget: lazyComponent(Components.SwapFormWidget),
SwapChartWidget: lazyComponent(Components.SwapChartWidget),
SwapTransactionsWidget: lazyComponent(Components.SwapTransactionsWidget),
SwapDistributionWidget: lazyComponent(Components.SwapDistribution),
SwapDistributionWidget: lazyComponent(Components.SwapDistributionWidget),
},
})
export default class Swap extends Mixins(mixins.LoadingMixin, TranslationMixin, SelectedTokenRouteMixin) {
Expand Down

0 comments on commit 375de5a

Please sign in to comment.