diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-07 23:11:51 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-07 23:11:51 +0800 |
commit | 3c7ebe2697f728b6f90d837cc202e5c1ed1a2182 (patch) | |
tree | 2d1656781c3ed7ab29adcc542860b8e2ff6220c0 /packages/website/ts/components | |
parent | 10fb6061ccf66bd117ba13ea2ed1cfe7373096d0 (diff) | |
download | dexon-sol-tools-3c7ebe2697f728b6f90d837cc202e5c1ed1a2182.tar dexon-sol-tools-3c7ebe2697f728b6f90d837cc202e5c1ed1a2182.tar.gz dexon-sol-tools-3c7ebe2697f728b6f90d837cc202e5c1ed1a2182.tar.bz2 dexon-sol-tools-3c7ebe2697f728b6f90d837cc202e5c1ed1a2182.tar.lz dexon-sol-tools-3c7ebe2697f728b6f90d837cc202e5c1ed1a2182.tar.xz dexon-sol-tools-3c7ebe2697f728b6f90d837cc202e5c1ed1a2182.tar.zst dexon-sol-tools-3c7ebe2697f728b6f90d837cc202e5c1ed1a2182.zip |
Remove unused types and take their names
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r-- | packages/website/ts/components/fill_order.tsx | 8 | ||||
-rw-r--r-- | packages/website/ts/components/portal.tsx | 16 |
2 files changed, 8 insertions, 16 deletions
diff --git a/packages/website/ts/components/fill_order.tsx b/packages/website/ts/components/fill_order.tsx index 674110b75..ceb06c95a 100644 --- a/packages/website/ts/components/fill_order.tsx +++ b/packages/website/ts/components/fill_order.tsx @@ -20,7 +20,7 @@ import { VisualOrder } from 'ts/components/visual_order'; import { Dispatcher } from 'ts/redux/dispatcher'; import { orderSchema } from 'ts/schemas/order_schema'; import { SchemaValidator } from 'ts/schemas/validator'; -import { AlertTypes, BlockchainErrs, SerializedOrder, Token, TokenByAddress, WebsitePaths } from 'ts/types'; +import { AlertTypes, BlockchainErrs, Order, Token, TokenByAddress, WebsitePaths } from 'ts/types'; import { colors } from 'ts/utils/colors'; import { constants } from 'ts/utils/constants'; import { errorReporter } from 'ts/utils/error_reporter'; @@ -34,7 +34,7 @@ interface FillOrderProps { networkId: number; userAddress: string; tokenByAddress: TokenByAddress; - initialOrder: SerializedOrder; + initialOrder: Order; dispatcher: Dispatcher; lastForceTokenStateRefetch: number; } @@ -45,7 +45,7 @@ interface FillOrderState { globalErrMsg: string; orderJSON: string; orderJSONErrMsg: string; - parsedOrder: SerializedOrder; + parsedOrder: Order; didFillOrderSucceed: boolean; didCancelOrderSucceed: boolean; unavailableTakerAmount: BigNumber; @@ -401,7 +401,7 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> { } private async _validateFillOrderFireAndForgetAsync(orderJSON: string) { let orderJSONErrMsg = ''; - let parsedOrder: SerializedOrder; + let parsedOrder: Order; try { const order = JSON.parse(orderJSON); const validationResult = this._validator.validate(order, orderSchema); diff --git a/packages/website/ts/components/portal.tsx b/packages/website/ts/components/portal.tsx index 6727645fc..92589f75c 100644 --- a/packages/website/ts/components/portal.tsx +++ b/packages/website/ts/components/portal.tsx @@ -23,15 +23,7 @@ import { localStorage } from 'ts/local_storage/local_storage'; import { Dispatcher } from 'ts/redux/dispatcher'; import { orderSchema } from 'ts/schemas/order_schema'; import { SchemaValidator } from 'ts/schemas/validator'; -import { - BlockchainErrs, - HashData, - ProviderType, - ScreenWidths, - SerializedOrder, - TokenByAddress, - WebsitePaths, -} from 'ts/types'; +import { BlockchainErrs, HashData, Order, ProviderType, ScreenWidths, TokenByAddress, WebsitePaths } from 'ts/types'; import { colors } from 'ts/utils/colors'; import { configs } from 'ts/utils/configs'; import { constants } from 'ts/utils/constants'; @@ -56,7 +48,7 @@ export interface PortalAllProps { userEtherBalance: BigNumber; userAddress: string; shouldBlockchainErrDialogBeOpen: boolean; - userSuppliedOrderCache: SerializedOrder; + userSuppliedOrderCache: Order; location: Location; flashMessage?: string | React.ReactNode; lastForceTokenStateRefetch: number; @@ -74,7 +66,7 @@ interface PortalAllState { export class Portal extends React.Component<PortalAllProps, PortalAllState> { private _blockchain: Blockchain; - private _sharedOrderIfExists: SerializedOrder; + private _sharedOrderIfExists: Order; private _throttledScreenWidthUpdate: () => void; public static hasAlreadyDismissedWethNotice() { const didDismissWethNotice = localStorage.getItemIfExists(constants.LOCAL_STORAGE_KEY_DISMISS_WETH_NOTICE); @@ -357,7 +349,7 @@ export class Portal extends React.Component<PortalAllProps, PortalAllState> { isWethNoticeDialogOpen: false, }); } - private _getSharedOrderIfExists(): SerializedOrder | undefined { + private _getSharedOrderIfExists(): Order | undefined { const queryString = window.location.search; if (queryString.length === 0) { return undefined; |