1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-23 06:21:06 +00:00

eslint fixes

This commit is contained in:
Vasek Mlejnsky 2018-09-24 15:27:18 +02:00
parent fabd569bed
commit 1aed318741
2 changed files with 7 additions and 7 deletions

View File

@ -63,12 +63,6 @@ const ErrorMessage = styled.div`
`;
export default class DuplicateDevice extends Component<Props, State> {
state: State;
input: ?HTMLInputElement;
keyboardHandler: (event: KeyboardEvent) => void;
constructor(props: Props) {
super(props);
@ -85,6 +79,12 @@ export default class DuplicateDevice extends Component<Props, State> {
};
}
state: State;
input: ?HTMLInputElement;
keyboardHandler: (event: KeyboardEvent) => void;
componentDidMount(): void {
// one time autofocus
if (this.input) this.input.focus();

View File

@ -65,7 +65,7 @@ module.exports = {
plugins: [
new webpack.DefinePlugin({
'process.env.BUILD': JSON.stringify(process.env.BUILD),
COMMITHASH: JSON.stringify(gitRevisionPlugin.commithash()
COMMITHASH: JSON.stringify(gitRevisionPlugin.commithash()),
}),
new HtmlWebpackPlugin({
chunks: ['index'],