Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove update for username #78

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions apps/frontend/src/app/profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import {
Avatar,
Button,
Col,
Divider,
Form,
Input,
Layout,
message,
Row,
Tooltip,
} from "antd";
import { Content } from "antd/es/layout/layout";
import "./styles.scss";
import { EditOutlined, SaveOutlined } from "@ant-design/icons";
import { useEffect, useState, useLayoutEffect } from "react";
import { useEffect, useState } from "react";
import {
UpdateUser,
ValidateUser,
Expand Down Expand Up @@ -117,14 +117,14 @@ const ProfilePage = (props: ProfilePageProps): JSX.Element => {
<Form.Item
name="username"
label="Username"
tooltip="Unmodifable to prevent confusion in other users history when your username changes"
rules={[
{
required: true,
message: "Please enter valid username!",
},
]}
>
<Input name="username" />
<Input name="username" disabled />
</Form.Item>
</Col>
<Col span={12}>
Expand All @@ -144,7 +144,11 @@ const ProfilePage = (props: ProfilePageProps): JSX.Element => {
</Row>
<Row gutter={16}>
<Col span={12}>
<Form.Item name="password" label="Password">
<Form.Item
name="password"
label="Password"
tooltip="Password is not updated if this field is left empty"
>
<Input.Password
name="password"
type="password"
Expand Down
Loading