Skip to content

Commit

Permalink
🚚 update edit email state to readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
heytulsiprasad committed Sep 23, 2020
1 parent f03b866 commit ce300ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { useEffect, useState } from "react";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import { connect } from "react-redux";
import axios from "axios";
import API from "./utils/axiosInstance";

import "./App.css";
import SignupContainer from "./containers/SignupContainer";
Expand Down
4 changes: 2 additions & 2 deletions src/components/Profile/EditInfo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ class EditInfo extends React.Component {
onChange={this.inputChangeHandler}
/>
<InputField
readOnly
title="Email"
name="email"
type="email"
placeholder="Enter your email..."
defaultValue={email || ""}
value={email || ""}
error={error.error}
required
/>
<div style={{ marginTop: "23px" }}>
<Button variant="secondary" clickHandler={this.submitHandler}>
Expand Down

1 comment on commit ce300ac

@vercel
Copy link

@vercel vercel bot commented on ce300ac Sep 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.