Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(app/worker/profile/hcaptcha-labeling): add labeling page #119

Merged

Conversation

KacperKoza343
Copy link
Collaborator

Description

Summary of changes

How test the changes

Related issues

Keywords for linking issues

@KacperKoza343 KacperKoza343 marked this pull request as draft June 6, 2024 10:15
@KacperKoza343 KacperKoza343 marked this pull request as ready for review June 18, 2024 07:33
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change logic


export function useIsHCaptchaLabelingPage() {
const location = useLocation();
if (location.pathname === routerPaths.worker.HcaptchaLabeling) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shortcut

const { user: operator } = useWeb3Auth();

if (worker) {
return <Navigate replace to={routerPaths.worker.profile} />;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change for navigate function

@@ -56,7 +56,7 @@ export function AddKeysOperatorPage() {
}

if (isGetKeysPending) {
return <PageCardLoader />;
return <PageCardLoader cardMaxWidth="100%" />;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cardMaxWidth value should by 100% by default

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo page

useEnableHCaptchaLabelingMutation();

if (user.site_key) {
return <Navigate replace to={routerPaths.worker.HcaptchaLabeling} />;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to navigat function

{canSolveCaptcha ? (
<Grid container sx={{ width: '100%', justifyContent: 'center' }}>
<HCaptcha
// @ts-expect-error -- ...
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add comment why

seconds: number;
}

export function countdown(futureTimestamp: number): CountDownResult {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename function

}: {
stats: HCaptchaUserStatsSuccess;
}) {
const { refetch } = useHCaptchaUserStats();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to props

@MicDebBlocky MicDebBlocky merged commit e74b921 into feature/human-app-frontend Jun 20, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants