Fakultas Ilmu Komputer UI

Commit ec135798 authored by Jonathan Chandra's avatar Jonathan Chandra
Browse files

edit Profile.jsx and UpdateProfileForm.jsx

parent 6be604ad
......@@ -74,7 +74,7 @@ export default function Profile(props) {
<b>Your threads</b>
)}
{username != profileUsername && (
<b>{user.username}s threads</b>
<b>{user.username}'s threads</b>
)}
</h3>
......
......@@ -4,13 +4,14 @@ import { useInput } from '../../helpers/hooks/input-hook';
import '../../styles/profile/UpdateProfileForm.css';
import authHeader from '../../helpers/services/authHeader.service';
import { API_URL } from '../../config/keys';
import AuthService from '../../helpers/services/auth.service';
export default function FormCreateThread(props) {
const {
value: username,
bind: bindUsername,
reset: resetUsername,
} = useInput('');
} = useInput(AuthService.getCurrentUsername());
const [message, setMessage] = useState('');
const back = () => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment