Skip to content

Commit

Permalink
Merge pull request #347 from Guzzing/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
HeeSeok-kim authored Jan 14, 2024
2 parents bb5d30e + db3f90c commit 07f2683
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/pages/EditChildren/EditChildren.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useNavigate } from 'react-router-dom'
import { useLocation } from 'react-router-dom'
import { useQuery } from '@tanstack/react-query'
import { useMutation } from '@tanstack/react-query'
import { useSetAtom } from 'jotai'

Check failure on line 7 in src/pages/EditChildren/EditChildren.tsx

View workflow job for this annotation

GitHub Actions / build_and_deploy

'useSetAtom' is declared but its value is never read.
import Loading from '@/components/Loading/Loading'
import Button from '@/components/common/button/Button'
import ListRow from '@/components/common/listRow/ListRow'
Expand Down
1 change: 0 additions & 1 deletion src/pages/academy/AcademyDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const AcademyDashboard = () => {
const [dashboardData, setDashboardData] = useState<GetAllDashBoardResponse[]>(
[]
)
console.log(childInfo)
const [dashboardId, setDashboardId] = useState(0)
const { setToast } = useToastify()
const { open, close, Modal } = useModal()
Expand Down
8 changes: 7 additions & 1 deletion src/pages/academy/academyDetail/AcademySetting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,19 @@ const AcademySetting = ({ data }: { data: GetAllDashBoardResponse }) => {
<div className={'w-full mt-[37px] px-[20px]'}>
{data.isActive ? (
<div className={'flex flex-col gap-[12px]'}>
{reviewData?.reviewable && (
{reviewData?.reviewable ? (
<Button
fullWidth={true}
buttonType={'Plain-blue'}
label={'리뷰 남기기'}
onClick={() => setBottomSheetOpen(!isbottomSheetOpen)}
/>
) : (
<Button
fullWidth={true}
buttonType={'Plain-disabled'}
disabled={true}
label={'이미 리뷰를 남긴 학원이에요'}></Button>
)}

<Button
Expand Down

0 comments on commit 07f2683

Please sign in to comment.