-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/modern-agile-team/8term-…
…coko-Front into feature/#79/Section_Part
- Loading branch information
Showing
15 changed files
with
400 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { | ||
DashLineHr, | ||
FlexContainer, | ||
GoToLoginButton, | ||
LoginPromptSection, | ||
LoginPromptImg, | ||
} from '../styles'; | ||
import { getImageUrl } from '@/utils/getImageUrl'; | ||
interface GoToLoginProps { | ||
onNext: () => void; | ||
} | ||
export default function LoginPrompt({ onNext }: GoToLoginProps) { | ||
return ( | ||
<> | ||
<FlexContainer> | ||
<LoginPromptSection> | ||
<h2>문제 더 풀려면 로그인해 !</h2> | ||
<LoginPromptImg src={getImageUrl('로그인키키.svg')} /> | ||
<DashLineHr /> | ||
<GoToLoginButton onClick={onNext}>로그인 창으로</GoToLoginButton> | ||
</LoginPromptSection> | ||
</FlexContainer> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { useNavigate } from 'react-router-dom'; | ||
import { CompensationSection } from '../styles'; | ||
import { pointQuery } from '@queries/usersQuery'; | ||
import { useTimeout } from '@modern-kit/react'; | ||
import useUserStore from '@store/useUserStore'; | ||
export default function PartClear() { | ||
const navigate = useNavigate(); | ||
const { mutate: updatePoint } = pointQuery.patch(); | ||
const { user } = useUserStore(); | ||
const point = 1500; | ||
useTimeout( | ||
() => { | ||
if (user) { | ||
updatePoint({ id: user.id, point }); | ||
} | ||
}, | ||
{ delay: 500 } | ||
); | ||
return ( | ||
<> | ||
<CompensationSection> | ||
<h1>와 파트클리어 축하해</h1> | ||
<button | ||
onClick={() => { | ||
navigate('/learn'); | ||
}} | ||
> | ||
넘어가기 | ||
</button> | ||
</CompensationSection> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.