Skip to content

Commit

Permalink
test: change name
Browse files Browse the repository at this point in the history
  • Loading branch information
saa00123 committed Sep 3, 2023
1 parent ebdc773 commit a0cbba8
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions front/src/pages/main/TeamList.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
import React from 'react';
import TeamListBox from '../../components/frames/TeamList/TeamListBox';
import React, { useState, useEffect } from "react";
import TeamListBox from "../../components/frames/TeamList/TeamListBox";

function TeamList() {
const [nickname, setNickname] = useState("sample");

useEffect(() => {
const isLoginSuccessful = true;

if (isLoginSuccessful) {
const newNickname = "최정훈";
setNickname(newNickname);
}
console.log(setNickname);
}, []);

return (
<div className='flex flex-col justify-center items-center m-auto w-[100vw] h-[100vh]'>
<TeamListBox />
Expand Down

0 comments on commit a0cbba8

Please sign in to comment.