Skip to content

Commit

Permalink
Feature/ga (#122)
Browse files Browse the repository at this point in the history
* Feat : GA 코드 추가

* Feat : Admin 전체 회원 조회

* Fix : stag 환경변수
  • Loading branch information
teagu123 authored Jul 12, 2024
1 parent ec12e72 commit dca2317
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/pages/admin/components/User.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@ function User() {
const { userinfo, isAdmin, isUniversityAdmin } =
useOutletContext<OutletContext>();
const [role, setRole] = useState<string | undefined>();

const universityName = userinfo.universityName;

return (
<Wrapper>
<div className="TitleUniversity">
<Title>회원정보</Title>
<UniversityName>{universityName}</UniversityName>
{isAdmin ? (
univName && (
<UniversityName>{universityName}</UniversityName>
)
) : (
<UniversityName>{universityName}</UniversityName>
)}
</div>
{isAdmin && (
<Nav>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/admin/components/user/HeadUserList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ const HeadUserList: React.FC<UserListProps> = ({
role,
}: UserListProps) => {
//메모. 여기가 지금 회원정보 list

const { curPageItem: users, renderPaginationBtn } =
useServerSidePagination<User>({
uri: '/api/admin/v1/univAdmin/univ/users',
uri: '/api/admin/v1/headquarters/users',
size: 10,
sort: order,
univName: univName,
Expand Down

0 comments on commit dca2317

Please sign in to comment.