Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.5.2 #52

Merged
merged 1 commit into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/components/modal-notice/modal-notice.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const [sizeAttr, srcsetAttr] = getResponseiveImage(sizes, `${IMAGE_URL}/images/n
export default class ModalNotice extends Component {
template() {
const header = this.addChild(modalHeader);

return (props) => {
if (props) this.setProps(props);

Expand All @@ -31,8 +30,8 @@ export default class ModalNotice extends Component {
/>
<div class="modal-notice__context-text">
졸업을 부탁해는 학우님들에게 더 정확한 서비스를 제공해드리기 위해 <br/>
9월 1일 까지 <strong> 2023-2학기 학사정보</strong>를 업데이트 중에 있습니다. </br>
이에 따라 서비스 결과가 부정확할 수 있음을 안내드립니다.</br>
9월 15일 까지 <strong> 2023-2학기 학사정보</strong>를 업데이트 중에 있습니다. </br>
이에 따라 서비스 결과가 부정확할 수 있음을 안내드리며, 지연된 업데이트 일정에 죄송하다는 말씀을 드립니다.</br>
</div>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion src/routers/main-page/main-page.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@ const [roundSizeAttr, roundSrcsetAttr] = getResponseiveImage(roundSizes, `${IMAG
export default class MainPage extends Component {
initState() {
this.state = {
isModalShow: true,
isModalShow: typeof window !== 'undefined' ? sessionStorage.getItem('notice') !== 'done' : null,
};
}

toggleModal() {
if (this.state.isModalShow) {
sessionStorage.setItem('notice', 'done');
}
this.setState({
isModalShow: !this.state.isModalShow,
});
Expand Down
Loading