From c6dece6bd1e5f5afa56b290557eb7a6245c76cb6 Mon Sep 17 00:00:00 2001
From: Fabio Berger <me@fabioberger.com>
Date: Tue, 30 Jan 2018 13:26:46 +0100
Subject: Add config file specifically in prettier command and fix files

---
 .../dialogs/track_token_confirmation_dialog.tsx    | 160 ++++++++++-----------
 1 file changed, 80 insertions(+), 80 deletions(-)

(limited to 'packages/website/ts/components/dialogs/track_token_confirmation_dialog.tsx')

diff --git a/packages/website/ts/components/dialogs/track_token_confirmation_dialog.tsx b/packages/website/ts/components/dialogs/track_token_confirmation_dialog.tsx
index b1804e95c..3f29d46f8 100644
--- a/packages/website/ts/components/dialogs/track_token_confirmation_dialog.tsx
+++ b/packages/website/ts/components/dialogs/track_token_confirmation_dialog.tsx
@@ -9,94 +9,94 @@ import { Dispatcher } from 'ts/redux/dispatcher';
 import { Token, TokenByAddress } from 'ts/types';
 
 interface TrackTokenConfirmationDialogProps {
-	tokens: Token[];
-	tokenByAddress: TokenByAddress;
-	isOpen: boolean;
-	onToggleDialog: (didConfirmTokenTracking: boolean) => void;
-	dispatcher: Dispatcher;
-	networkId: number;
-	blockchain: Blockchain;
-	userAddress: string;
+    tokens: Token[];
+    tokenByAddress: TokenByAddress;
+    isOpen: boolean;
+    onToggleDialog: (didConfirmTokenTracking: boolean) => void;
+    dispatcher: Dispatcher;
+    networkId: number;
+    blockchain: Blockchain;
+    userAddress: string;
 }
 
 interface TrackTokenConfirmationDialogState {
-	isAddingTokenToTracked: boolean;
+    isAddingTokenToTracked: boolean;
 }
 
 export class TrackTokenConfirmationDialog extends React.Component<
-	TrackTokenConfirmationDialogProps,
-	TrackTokenConfirmationDialogState
+    TrackTokenConfirmationDialogProps,
+    TrackTokenConfirmationDialogState
 > {
-	constructor(props: TrackTokenConfirmationDialogProps) {
-		super(props);
-		this.state = {
-			isAddingTokenToTracked: false,
-		};
-	}
-	public render() {
-		const tokens = this.props.tokens;
-		return (
-			<Dialog
-				title="Tracking confirmation"
-				titleStyle={{ fontWeight: 100 }}
-				actions={[
-					<FlatButton
-						key="trackNo"
-						label="No"
-						onTouchTap={this._onTrackConfirmationRespondedAsync.bind(this, false)}
-					/>,
-					<FlatButton
-						key="trackYes"
-						label="Yes"
-						onTouchTap={this._onTrackConfirmationRespondedAsync.bind(this, true)}
-					/>,
-				]}
-				open={this.props.isOpen}
-				onRequestClose={this.props.onToggleDialog.bind(this, false)}
-				autoScrollBodyContent={true}
-			>
-				<div className="pt2">
-					<TrackTokenConfirmation
-						tokens={tokens}
-						networkId={this.props.networkId}
-						tokenByAddress={this.props.tokenByAddress}
-						isAddingTokenToTracked={this.state.isAddingTokenToTracked}
-					/>
-				</div>
-			</Dialog>
-		);
-	}
-	private async _onTrackConfirmationRespondedAsync(didUserAcceptTracking: boolean) {
-		if (!didUserAcceptTracking) {
-			this.props.onToggleDialog(didUserAcceptTracking);
-			return;
-		}
-		this.setState({
-			isAddingTokenToTracked: true,
-		});
-		for (const token of this.props.tokens) {
-			const newTokenEntry = {
-				...token,
-			};
+    constructor(props: TrackTokenConfirmationDialogProps) {
+        super(props);
+        this.state = {
+            isAddingTokenToTracked: false,
+        };
+    }
+    public render() {
+        const tokens = this.props.tokens;
+        return (
+            <Dialog
+                title="Tracking confirmation"
+                titleStyle={{ fontWeight: 100 }}
+                actions={[
+                    <FlatButton
+                        key="trackNo"
+                        label="No"
+                        onTouchTap={this._onTrackConfirmationRespondedAsync.bind(this, false)}
+                    />,
+                    <FlatButton
+                        key="trackYes"
+                        label="Yes"
+                        onTouchTap={this._onTrackConfirmationRespondedAsync.bind(this, true)}
+                    />,
+                ]}
+                open={this.props.isOpen}
+                onRequestClose={this.props.onToggleDialog.bind(this, false)}
+                autoScrollBodyContent={true}
+            >
+                <div className="pt2">
+                    <TrackTokenConfirmation
+                        tokens={tokens}
+                        networkId={this.props.networkId}
+                        tokenByAddress={this.props.tokenByAddress}
+                        isAddingTokenToTracked={this.state.isAddingTokenToTracked}
+                    />
+                </div>
+            </Dialog>
+        );
+    }
+    private async _onTrackConfirmationRespondedAsync(didUserAcceptTracking: boolean) {
+        if (!didUserAcceptTracking) {
+            this.props.onToggleDialog(didUserAcceptTracking);
+            return;
+        }
+        this.setState({
+            isAddingTokenToTracked: true,
+        });
+        for (const token of this.props.tokens) {
+            const newTokenEntry = {
+                ...token,
+            };
 
-			newTokenEntry.isTracked = true;
-			trackedTokenStorage.addTrackedTokenToUser(this.props.userAddress, this.props.networkId, newTokenEntry);
-			this.props.dispatcher.updateTokenByAddress([newTokenEntry]);
+            newTokenEntry.isTracked = true;
+            trackedTokenStorage.addTrackedTokenToUser(this.props.userAddress, this.props.networkId, newTokenEntry);
+            this.props.dispatcher.updateTokenByAddress([newTokenEntry]);
 
-			const [balance, allowance] = await this.props.blockchain.getCurrentUserTokenBalanceAndAllowanceAsync(
-				token.address,
-			);
-			this.props.dispatcher.updateTokenStateByAddress({
-				[token.address]: {
-					balance,
-					allowance,
-				},
-			});
-		}
+            const [balance, allowance] = await this.props.blockchain.getCurrentUserTokenBalanceAndAllowanceAsync(
+                token.address,
+            );
+            this.props.dispatcher.updateTokenStateByAddress({
+                [token.address]: {
+                    balance,
+                    allowance,
+                },
+            });
+        }
 
-		this.setState({
-			isAddingTokenToTracked: false,
-		});
-		this.props.onToggleDialog(didUserAcceptTracking);
-	}
+        this.setState({
+            isAddingTokenToTracked: false,
+        });
+        this.props.onToggleDialog(didUserAcceptTracking);
+    }
 }
-- 
cgit v1.2.3

