Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
belopash committed Dec 13, 2024
2 parents 829cc18 + c9193a7 commit a84ef6d
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 15 deletions.
6 changes: 0 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,6 @@
loader?.classList.remove("dark")
}
</script>
<script>
!function(t,e) {var o,n,p,r; e.__SV || (window.posthog = e,e._i = [],e.init = function(i,s,a) {function g(t,e) {var o = e.split("."); 2 == o.length && (t = t[o[0]],e = o[1]),t[e] = function() {t.push([e].concat(Array.prototype.slice.call(arguments,0)))}} (p = t.createElement("script")).type = "text/javascript",p.async = !0,p.src = s.api_host.replace(".i.posthog.com","-assets.i.posthog.com") + "/static/array.js",(r = t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r); var u = e; for(void 0 !== a ? u = e[a] = [] : a = "posthog",u.people = u.people || [],u.toString = function(t) {var e = "posthog"; return "posthog" !== a && (e += "." + a),t || (e += " (stub)"),e},u.people.toString = function() {return u.toString(1) + ".people (stub)"},o = "capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures getActiveMatchingSurveys getSurveys getNextSurveyStep onSessionId".split(" "),n = 0;n < o.length;n++)g(u,o[n]); e._i.push([i,s,a])},e.__SV = 1)}(document,window.posthog || [])
posthog.init('phc_fTe8YFz8YP8IZG5pALV2HhbiJoFGcyHcyW2xtt8RWjD',{
api_host: 'https://eu.i.posthog.com',person_profiles: 'identified_only' // or 'always' to create profiles for anonymous users as well
})
</script>
<script type="module" src="/src/index.tsx"></script>
</body>

Expand Down
2 changes: 1 addition & 1 deletion src/pages/DelegationsPage/DelegationsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function MyDelegations() {
locked: d.locked || false,
unlockedAt: d.unlockedAt || '',
}))}
disabled={!worker.delegations.some(d => !d.locked)}
disabled={isLoading}
/>
</Stack>
</TableCell>
Expand Down
1 change: 1 addition & 0 deletions src/pages/GatewaysPage/GatewayUnstake.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export function GatewayUnstakeButton({
hidden={disabled}
title={
!disabled &&
source.locked &&
(source.unlockedAt ? (
<UnlocksTooltip timestamp={source.unlockedAt} />
) : (
Expand Down
30 changes: 25 additions & 5 deletions src/pages/GatewaysPage/GatewaysPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,11 @@ const GettingStarted = () => {
secondary: (
<>
Make sure you have enough SQD tokens to get started.{' '}
<a href="https://docs.sqd.dev/subsquid-network/participate/portal/#lock-sqd">
<a
href="https://docs.sqd.dev/subsquid-network/participate/portal/#staking-requirements-and-compute-units"
target="_blank"
rel="noreferrer"
>
How much do I need?
</a>
</>
Expand All @@ -368,7 +372,11 @@ const GettingStarted = () => {
<>
Lock your SQD tokens to generate Compute Units (CUs), which are used to handle SQD Network
queries.{' '}
<a href="https://docs.sqd.dev/subsquid-network/participate/portal/#staking-requirements-and-compute-units">
<a
href="https://docs.sqd.dev/subsquid-network/participate/portal/#staking-requirements-and-compute-units"
target="_blank"
rel="noreferrer"
>
How do CUs transfer to SQD?
</a>
</>
Expand All @@ -379,7 +387,11 @@ const GettingStarted = () => {
secondary: (
<>
Create a Peer ID to identify your portal.{' '}
<a href="https://docs.sqd.dev/subsquid-network/participate/portal/#generate-peer-id">
<a
href="https://docs.sqd.dev/subsquid-network/participate/portal/#generate-peer-id"
target="_blank"
rel="noreferrer"
>
How to generate a Peer ID?
</a>
</>
Expand Down Expand Up @@ -440,10 +452,18 @@ const GettingStarted = () => {
</List>
<Typography variant="body1" mt={1}>
That's it! Your portal is now ready to run. For more detailed guidance, check out the{' '}
<a href="https://docs.sqd.dev/subsquid-network/participate/portal/">
<a
href="https://docs.sqd.dev/subsquid-network/participate/portal/"
target="_blank"
rel="noreferrer"
>
Portal Documentation
</a>{' '}
or <a href="https://t.me/HydraDevs">contact our team</a> for help.
or{' '}
<a href="https://t.me/HydraDevs" target="_blank" rel="noreferrer">
contact our team
</a>{' '}
for help.
</Typography>
</Box>
</Collapse>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/WorkersPage/Worker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const Worker = ({ backPath }: { backPath: string }) => {
// FIXME: some issue with types
unlockedAt: (d as any).unlockedAt,
}))}
disabled={isLoading || !delegations?.some(d => !d.locked)}
disabled={isLoading}
/>
</Stack>
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/WorkersPage/WorkerUndelegate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function WorkerUndelegate({
return (
<>
<Tooltip
title={!disabled && unlockedAt && <UnlocksTooltip timestamp={unlockedAt} />}
title={!disabled && isLocked && unlockedAt && <UnlocksTooltip timestamp={unlockedAt} />}
placement="top"
>
<Box sx={{ position: 'relative', display: 'inline-flex', alignItems: 'center' }}>
Expand Down
6 changes: 5 additions & 1 deletion src/pages/WorkersPage/WorkerWithdraw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ export function WorkerWithdrawButton({
return (
<>
<Tooltip
title={!disabled && source.unlockedAt && <UnlocksTooltip timestamp={source.unlockedAt} />}
title={
!disabled &&
source.locked &&
source.unlockedAt && <UnlocksTooltip timestamp={source.unlockedAt} />
}
placement="top"
>
<Box sx={{ position: 'relative', display: 'inline-flex', alignItems: 'center' }}>
Expand Down

0 comments on commit a84ef6d

Please sign in to comment.