Skip to content

Commit

Permalink
Change full name field to defaultValue
Browse files Browse the repository at this point in the history
  • Loading branch information
baileypumfleet committed Apr 9, 2021
1 parent 15d9267 commit 6522886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/settings/profile.tsx
Expand Up @@ -72,7 +72,7 @@ export default function Settings(props) {
</div>
<div className="w-1/2 ml-2">
<label htmlFor="name" className="block text-sm font-medium text-gray-700">Full name</label>
<input ref={nameRef} type="text" name="name" id="name" autoComplete="given-name" placeholder="Your name" className="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm" value={props.user.name} />
<input ref={nameRef} type="text" name="name" id="name" autoComplete="given-name" placeholder="Your name" className="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm" defaultValue={props.user.name} />
</div>
</div>

Expand Down

0 comments on commit 6522886

Please sign in to comment.