Skip to content

Commit

Permalink
fix: 로그인되어 있고 멤버 페이지 경로일 경우 테이블 데이터 로드 (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
HSjjs98 authored Jul 5, 2024
1 parent b41bfe7 commit ce9080c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/pages/Members/Members.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Main from '../../components/Main.js';
import Title from '../../components/Title/Title.js';
import Input from '../../components/Input/Input.js';
import Table from '../../components/Table/Table.js';
import { COLORS, PATH_TITLE } from '../../utils/constants.js';
import { COLORS, PATH, PATH_TITLE } from '../../utils/constants.js';
import './Members.css';
import Icon from '../../components/Icon/Icon.js';
import { magnifyingGlass } from '../../utils/icons.js';
Expand All @@ -26,14 +26,13 @@ export default class MembersPage extends Main {
this.memberService = new MemberService();
this.contents = [];
this.auth = new AuthService();

if (this.auth.isLoggedIn()) {
this.pagination = new Pagination({
this.pagination = new Pagination({
currentPage: this.currentPage,
maxPage: 8,
onPageChange: this.handlePageChange,
});

});

if (this.auth.isLoggedIn() && window.location.pathname === PATH.MEMBERS) {
this.loadData(this.currentPage, this.maxProfile);
}
}
Expand Down

0 comments on commit ce9080c

Please sign in to comment.