Skip to content

Commit

Permalink
D-Day display fix (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueHorn07 authored May 29, 2024
1 parent 8340591 commit 027afea
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 128 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/github-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check the deployed service URL
uses: jtalk/url-health-check-action@v3
uses: jtalk/url-health-check-action@v4
with:
url: https://popo.poapper.club|https://popo-dev.poapper.club
follow-redirect: true
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN npm run build
RUN npm prune --production

# Run Step
FROM node:20.9-alpine AS runner
FROM node:20-alpine AS runner

WORKDIR /usr/src/app

Expand Down
11 changes: 8 additions & 3 deletions components/calendar/calendar.panel.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { ICalendar } from '@/types/calendar.interface';
import moment from 'moment';
import 'moment/locale/ko';
import styled from 'styled-components';

import { ICalendar } from '@/types/calendar.interface';

const CalendarPanel = ({ nextEvent }: { nextEvent: ICalendar }) => {
const dDay = moment(nextEvent.event_date).diff(moment(), 'days');
const dDay = moment(nextEvent.event_date).diff(
moment().format('YYYY-MM-DD'),
'days',
);
return (
<div style={{ marginBottom: 12 }}>
<NoticeCard>
Expand All @@ -19,7 +24,7 @@ const CalendarPanel = ({ nextEvent }: { nextEvent: ICalendar }) => {
</div>
<div>
{nextEvent.title}
<br />({`${moment(nextEvent.event_date).format('M월 D일')}`})
<br />({`${moment(nextEvent.event_date).format('MM월 DD일 dddd')}`})
</div>
</NoticeCard>
</div>
Expand Down
Loading

0 comments on commit 027afea

Please sign in to comment.