-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(app/worker/profile/hcaptcha-labeling): add labeling page #119
Conversation
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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} />; |
There was a problem hiding this comment.
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%" />; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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} />; |
There was a problem hiding this comment.
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 -- ... |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename function
Feat/add extending user data
feat(app/worker/labeling): fix stats, labaling page reload and hard r…
…om/blockydevs/human-protocol into HAF-37-wfc-page-h-captcha-labeling
}: { | ||
stats: HCaptchaUserStatsSuccess; | ||
}) { | ||
const { refetch } = useHCaptchaUserStats(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to props
e74b921
into
feature/human-app-frontend
Description
Summary of changes
How test the changes
Related issues
Keywords for linking issues