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/portal.tsx | |
parent | 10fb6061ccf66bd117ba13ea2ed1cfe7373096d0 (diff) | |
download | dexon-0x-contracts-3c7ebe2697f728b6f90d837cc202e5c1ed1a2182.tar.gz dexon-0x-contracts-3c7ebe2697f728b6f90d837cc202e5c1ed1a2182.tar.zst dexon-0x-contracts-3c7ebe2697f728b6f90d837cc202e5c1ed1a2182.zip |
Remove unused types and take their names
Diffstat (limited to 'packages/website/ts/components/portal.tsx')
-rw-r--r-- | packages/website/ts/components/portal.tsx | 16 |
1 files changed, 4 insertions, 12 deletions
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; |