From 8f3604f043f0c5501f89bac1d29f1e0b119a86bf Mon Sep 17 00:00:00 2001 From: eunbeann Date: Sun, 19 May 2024 23:07:48 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[=20style=20]=20=EC=9E=85=EA=B8=88=EC=9E=90?= =?UTF-8?q?=EB=AA=85=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LessonConnect/LessonConnectNumber.tsx | 15 +++------------ src/components/lessonRecord/LessonInfoList.tsx | 4 ++-- src/core/Parents/lessonInfo.ts | 2 +- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/src/components/LessonConnect/LessonConnectNumber.tsx b/src/components/LessonConnect/LessonConnectNumber.tsx index 3abf996b..7950b3bd 100644 --- a/src/components/LessonConnect/LessonConnectNumber.tsx +++ b/src/components/LessonConnect/LessonConnectNumber.tsx @@ -1,26 +1,17 @@ import { useState } from "react"; import { useMutation } from "react-query"; import { useNavigate } from "react-router-dom"; -import { useRecoilState, useRecoilValue, useSetRecoilState } from "recoil"; +import { useRecoilState, useRecoilValue } from "recoil"; import { styled } from "styled-components"; -import { createLesson } from "../../api/createLesson"; -import { studentNameState, subjectNameState } from "../../atom/common/datePicker"; +import { updateLessonParents } from "../../api/manageLesson/updateLessonParents"; import { parentsPhoneState } from "../../atom/registerLesson/registerLesson"; -import { cycleNumberState, dateState, dayState } from "../../atom/timePicker/timePicker"; -import { - accountNumber, - bankName, - lessonCodeAndPaymentId, - moneyAmount, - paymentOrder, -} from "../../atom/tuitionPayment/tuitionPayment"; +import { lessonCodeAndPaymentId } from "../../atom/tuitionPayment/tuitionPayment"; import { BUTTON_TEXT } from "../../core/signup/signUpTextLabels"; import useFormattedPhoneNumber from "../../hooks/signupLogin/usePhoneNumberFormat"; import useModal from "../../hooks/useModal"; import { BasicDoubleModal, BottomButton, CommonBackButton, ProgressBar } from "../common"; import InputLayout from "../signup/InputLayout"; import SignupTitleLayout from "../signup/SignupTitleLayout"; -import { updateLessonParents } from "../../api/manageLesson/updateLessonParents"; interface scheduleListProps { dayOfWeek: string; diff --git a/src/components/lessonRecord/LessonInfoList.tsx b/src/components/lessonRecord/LessonInfoList.tsx index 9c94772e..9d10aa14 100644 --- a/src/components/lessonRecord/LessonInfoList.tsx +++ b/src/components/lessonRecord/LessonInfoList.tsx @@ -52,9 +52,9 @@ export default function LessonInfoList(props: LessonInfoListProp) { )} 은행 - {[accountInfo?.name, accountInfo?.bank, accountInfo?.number]?.map((info: string, idx: number) => { + {[accountInfo?.bank, accountInfo?.number]?.map((info: string, idx: number) => { return ( - + ); })} 수업진행 diff --git a/src/core/Parents/lessonInfo.ts b/src/core/Parents/lessonInfo.ts index 5a12feaf..0824f6c4 100644 --- a/src/core/Parents/lessonInfo.ts +++ b/src/core/Parents/lessonInfo.ts @@ -1,2 +1,2 @@ -export const BANK_INFO = ["입금자명", "은행", "계좌번호"]; +export const BANK_INFO = ["은행", "계좌번호"]; export const CLASS_INFO = ["시작날짜", "입금방식", "수업비"]; From b0af672c854b16466591b0cc63fe51bd356f897f Mon Sep 17 00:00:00 2001 From: eunbeann Date: Sun, 19 May 2024 23:07:57 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[=20feat=20]=20=EB=AC=B8=EC=9E=90=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/lessonShare/ShareMain.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/lessonShare/ShareMain.tsx b/src/components/lessonShare/ShareMain.tsx index 8e5c4736..3a3e7b92 100644 --- a/src/components/lessonShare/ShareMain.tsx +++ b/src/components/lessonShare/ShareMain.tsx @@ -34,7 +34,7 @@ export default function ShareMain({ handleMoveToPage }: handleMoveToPageProps) { icon: ShareViaMessage, text: "메시지", onClick: () => { - alert("준비 중인 기능입니다."); + handleShareViaMessage(); }, }, { @@ -67,6 +67,12 @@ export default function ShareMain({ handleMoveToPage }: handleMoveToPageProps) { } } + function handleShareViaMessage() { + const message = `안녕하세요, 과외 수업 관리 필수 앱 Tutice 입니다. \n\n[${userName}]선생님이 [${studentName}]학생의\nTutice 초대장을 보냈습니다.\n\nTutice 링크 \n ${URL}`; + const smsLink = `sms:?body=${encodeURIComponent(message)}`; + window.location.href = smsLink; + } + function handleCopyLink() { try { navigator.clipboard.writeText(URL).then(() => {