Skip to content

Commit

Permalink
Fix add and edit question
Browse files Browse the repository at this point in the history
Fix username cookie update
Add turn server
  • Loading branch information
jehousoh committed Nov 13, 2024
1 parent 8f2ccc3 commit f20b25f
Show file tree
Hide file tree
Showing 4 changed files with 218 additions and 187 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/(user)/user/me/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ import {
getUserId,
updateUser,
getFileUrl,
ToastComponent,
resetPasswordFromProfile,
setUsername,
} from "@/api/user";
import { useEffect, useRef, useState } from "react";
import { User } from "@/types/user";
import { z } from "zod";
import { zodResolver } from "@hookform/resolvers/zod";
import Swal from "sweetalert2";
import { CgProfile } from "react-icons/cg";
import MoonLoader from "react-spinners/MoonLoader";
import { IoCloseCircle } from "react-icons/io5";
Expand Down Expand Up @@ -122,6 +121,7 @@ const ProfilePage = () => {
) => {
await updateUser(data);
setUser(data);
if (data.username) setUsername(data.username);
};

const onResetPasswordSubmit = async (
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/admin/components/AddQuestionDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const AddQuestionDialog = ({
{fields.map((example, index) => (
<div
key={example.id}
className="space-y-2 bg-primary-800 p-4 rounded-md"
className="space-y-2 bg-primary-800 p-4 rounded-md border-[1px] border-white"
>
<FormField
control={form.control}
Expand Down
Loading

0 comments on commit f20b25f

Please sign in to comment.