Skip to content

Commit 8c7eca4

Browse files
committed
refactor: 파일 및 컴포넌트명 userplus -> userIvite 로 변경
1 parent 1fe006d commit 8c7eca4

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

src/components/common/UserPlus.tsx renamed to src/components/common/UserInvite.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import { FC } from 'react';
22
import DialogButton from '@/components/common/DialogButton';
33
import IconUserPlus from '@/assets/icons/IconUserPlus';
4-
import UserPlusDialog from '@/components/common/UserPlusDialog';
4+
import UserInviteDialog from '@/components/common/UserInviteDialog';
55

66
const AddCalendarPage: FC = () => {
77
return (
88
<div>
99
멤버 초대하기 *
1010
<DialogButton
11-
classname={'userplus'}
11+
classname={'userInvite bg-base-200 hover:bg-base-300'}
1212
name={<IconUserPlus />}
1313
title={'멤버 찾기'}
1414
desc={''}
15-
children={<UserPlusDialog />}
15+
children={<UserInviteDialog />}
1616
/>
1717
</div>
1818
);

src/components/common/UserPlusDialog.tsx renamed to src/components/common/UserInviteDialog.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import InputForm from './InputForm.tsx';
22
import { searchUser } from '../../apis/authApis.ts';
33
import { FC, useState } from 'react';
44
import IconSearch from '@/assets/icons/IconSearch.tsx';
5-
import UserPlusList from './UserPlusList.tsx';
5+
import UserInviteList from './UserInviteList.tsx';
66

7-
const UserPlus: FC = () => {
7+
const UserInvite: FC = () => {
88
const [email, setEamil] = useState('');
99
const [list, setList] = useState<any[]>([]);
1010

@@ -14,7 +14,7 @@ const UserPlus: FC = () => {
1414

1515
const onSearchClick = () => {
1616
searchUser(email).then((value) => {
17-
setList(value.map(({ user_nickname, id }) => <UserPlusList user_nickname={user_nickname} id={id} />));
17+
setList(value.map(({ user_nickname, id }) => <UserInviteList user_nickname={user_nickname} id={id} />));
1818
return list;
1919
});
2020
};
@@ -34,4 +34,4 @@ const UserPlus: FC = () => {
3434
);
3535
};
3636

37-
export default UserPlus;
37+
export default UserInvite;
File renamed without changes.

src/main.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import TextInputForm from './pages/InputFormTest.tsx';
77
import { createBrowserRouter, RouterProvider } from 'react-router-dom';
88
import { JoinPage, LoginPage, ResetPwPage, NotFound, Policy } from './pages/index.ts';
99

10-
import UserPlus from './components/common/UserPlus.tsx';
10+
import UserInvite from './components/common/UserInvite.tsx';
1111

1212
const router = createBrowserRouter([
1313
{
@@ -38,8 +38,8 @@ const router = createBrowserRouter([
3838
element: <TextInputForm />,
3939
},
4040
{
41-
path: 'userPlus',
42-
element: <UserPlus />,
41+
path: 'UserInvite',
42+
element: <UserInvite />,
4343
},
4444
],
4545
},

src/styles/index.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
@tailwind components;
33
@tailwind utilities;
44

5-
.userplus {
6-
padding: 2rem 1.3rem;
5+
.userInvite {
6+
display: flex;
7+
justify-content: center;
8+
align-items: center;
9+
width: 4.2rem;
10+
height: 5.7rem;
711
border: 1px solid oklch(var(--b3));
812
border-radius: 0.5rem;
9-
background-color: oklch(var(--b2));
10-
}
11-
.userplus:hover {
12-
background-color: oklch(var(--b3));
1313
}

0 commit comments

Comments
 (0)