Skip to content
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
2 changes: 0 additions & 2 deletions src/app/archive/components/Activities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ export default function Activities({
const focusYearCal = getYear(currentDate)
const focusMonthCal = getMonth(currentDate) + 1

console.log(currentYearCal, currentMonthCal, focusYearCal, focusMonthCal)

setCurrentYear(currentYearCal)
setCurrentMonth(currentMonthCal)
setFocusYear(focusYearCal)
Expand Down
2 changes: 1 addition & 1 deletion src/app/home/components/TimeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function TimeCard({
title,
imgSrc,
}: TimeCardProps) {
console.log(category, 'category')
// console.log(category, 'category')
return (
<Div className="relative bg-white px-12">
<div className="">
Expand Down
20 changes: 10 additions & 10 deletions src/app/home/fast/components/FastCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ export default function FastCard(quickStart: QuickStart) {
const handleClickEdit = () => {
const isOnline = type === 'ONLINE' || type === 'ONLINE_AND_OFFLINE'
const isOffline = type === 'OFFLINE' || type === 'ONLINE_AND_OFFLINE'
console.log(
id,
name,
hour,
minute,
spareTime,
meridiem,
isOnline,
isOffline,
)
// console.log(
// id,
// name,
// hour,
// minute,
// spareTime,
// meridiem,
// isOnline,
// isOffline,
// )
const query = new URLSearchParams({
id: id!.toString(),
name,
Expand Down
2 changes: 1 addition & 1 deletion src/app/home/fast/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useQuickStartContext } from './components/Fetcher'
export default function FastPage() {
const router = useRouter()
const { quickStartResponses } = useQuickStartContext()
console.log(quickStartResponses)
// console.log(quickStartResponses)

return (
<HeaderWithBack title="빠른 시작" onBack={() => router.back()}>
Expand Down
9 changes: 9 additions & 0 deletions src/app/home/sg-activity/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default function SuggestActivity() {
const [postActivityType, setPostActivityType] = useState('')
const { spareTime, setSpareTime, address, reset } = useActivityStore()
const router = useRouter()
const [isQuick, setIsQuick] = useState(false)

const handleBack = () => {
if (step === 1) {
Expand All @@ -36,6 +37,11 @@ export default function SuggestActivity() {
return
}

if (isQuick) {
setIsQuick(false)
router.push('/home')
}

setStep((prevStep) => {
if (prevStep === 4 && !selectOnOff.includes('오프라인')) {
return 2
Expand Down Expand Up @@ -99,6 +105,8 @@ export default function SuggestActivity() {
const quickStartData = localStorage.getItem('quickStart')
if (quickStartData) {
const { quickStart } = JSON.parse(quickStartData)

setIsQuick(true)
if (quickStart.type === 'ONLINE') {
setStep(4)
} else {
Expand All @@ -107,6 +115,7 @@ export default function SuggestActivity() {
setSeletOnOff([quickStart.type === 'ONLINE' ? '온라인' : '오프라인'])
}
}, [])

return (
<div className="w-full h-screen overflow-hidden">
<HeaderWithBack onBack={handleBack} title="활동 추천받기">
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/HomeHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface HomeHeaderProps extends StrictPropsWithChildren {

export default function HomeHeader({ children, title }: HomeHeaderProps) {
const { profileImage } = useUserInfo().userInfo
console.log(profileImage)
// console.log(profileImage)
const { push } = useRouter()
return (
<div className="flex w-full flex-col relative">
Expand Down