Skip to content

Commit

Permalink
fix: "정산 초대하기"에서도 실행 환경에 따라 링크가 변경되도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Todari committed Aug 12, 2024
1 parent 1a41d7b commit aba9154
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/pages/EventPage/EventPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ const EventPageLayout = () => {

const {showToast} = useToast();

const env = process.env.NODE_ENV || '';

return (
<StepListProvider>
<MainLayout backgroundColor="gray">
<TopNav>
<Switch value={nav} values={paths} onChange={onChange} />
<CopyToClipboard
text={`[행동대장]\n"${eventName}"에 대한 정산을 시작할게요:)\n아래 링크에 접속해서 정산 내역을 확인해 주세요!\nhttps://haengdong.pro${ROUTER_URLS.event}/${eventId}/home`}
text={`[행동대장]\n"${eventName}"에 대한 정산을 시작할게요:)\n아래 링크에 접속해서 정산 내역을 확인해 주세요!\nhttps://${env.includes('development') ? 'dev.' : ''}haengdong.pro${ROUTER_URLS.event}/${eventId}/home`}
onCopy={() =>
showToast({
showingTime: 3000,
Expand Down

0 comments on commit aba9154

Please sign in to comment.