<commit_before>// @flow
import React from 'react'

import Button from '../../components/Button'
import LoginIcon from '../../assets/icons/login.svg'
import styles from '../Home/Home.scss'
import TextInput from '../../components/Inputs/TextInput'

type Props = {
  watchOnlyLogin: (content: string) => void,
}

type State = {
  address: string,
}

export default class LoginPrivateKey extends React.Component<Props, State> {
  state = {
    address: '',
  }

  render = () => {
    const { watchOnlyLogin } = this.props
    const { address } = this.state

    return (
      <div id="loginPrivateKey" className={styles.flexContainer}>
        <form
          onSubmit={e => {
            e.preventDefault()
            watchOnlyLogin(address)
          }}
        >
          <React.Fragment>
            <div className={styles.centeredInput}>
              <TextInput
                textInputClassName={styles.privateKeyInput}
                placeholder="Enter a NEO address here"
                value={address}
                onChange={(e: Object) =>
                  this.setState({ address: e.target.value })
                }
                autoFocus<commit_msg>Keeps default text size in text input in LoginWatchOnly.jsx<commit_after>// @flow
import React from 'react'

import Button from '../../components/Button'
import LoginIcon from '../../assets/icons/login.svg'
import styles from '../Home/Home.scss'
import TextInput from '../../components/Inputs/TextInput'

type Props = {
  watchOnlyLogin: (content: string) => void,
}

type State = {
  address: string,
}

export default class LoginPrivateKey extends React.Component<Props, State> {
  state = {
    address: '',
  }

  render = () => {
    const { watchOnlyLogin } = this.props
    const { address } = this.state

    return (
      <div id="loginPrivateKey" className={styles.flexContainer}>
        <form
          onSubmit={e => {
            e.preventDefault()
            watchOnlyLogin(address)
          }}
        >
          <React.Fragment>
            <div className={styles.centeredInput}>
              <TextInput
                placeholder="Enter a NEO address here"
                value={address}
                onChange={(e: Object) =>
                  this.setState({ address: e.target.value })
                }
                autoFocus
{'fraction_non_alphanumeric': 0.1240343347639485, 'fraction_numerical': 0.0, 'mean_word_length': 2.0038659793814433, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3393630', 'n_tokens_mistral': 622, 'n_tokens_neox': 618, 'n_words': 152}