Add @ next to handle on editProfile

This commit is contained in:
Clayton Wilson 2019-12-03 16:37:57 -05:00
parent 5b5e785142
commit 2d426840c0

View File

@ -2,7 +2,6 @@ import React, { Component } from "react";
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import axios from "axios"; import axios from "axios";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
// TODO: Add a read-only '@' in the left side of the handle input
// Material-UI stuff // Material-UI stuff
import Box from "@material-ui/core/Box" import Box from "@material-ui/core/Box"
@ -243,7 +242,7 @@ export class editProfile extends Component {
name="handle" name="handle"
label="Handle*" label="Handle*"
className={classes.textField} className={classes.textField}
value={this.state.handle} value={"@" + this.state.handle}
disabled disabled
helperText="(disabled)" helperText="(disabled)"
// INFO: These will be uncommented if changing usernames is allowed // INFO: These will be uncommented if changing usernames is allowed