Skip to content

Commit

Permalink
Merge pull request #245 from Chia-Network/fix--make-tabs-work
Browse files Browse the repository at this point in the history
fix: make tabs work
  • Loading branch information
MichaelTaylor3D committed Jan 21, 2022
2 parents 29aa497 + ca369e2 commit 26474d2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
28 changes: 14 additions & 14 deletions src/pages/Projects/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,20 +256,20 @@ const Projects = withRouter(() => {
<Tabs value={tabValue} onChange={handleTabChange}>
<Tab label={intl.formatMessage({ id: 'committed' })} />
{pageIsMyRegistryPage && (
<>
<Tab
label={`${intl.formatMessage({ id: 'staging' })} (${
climateWarehouseStore.stagingData &&
climateWarehouseStore.stagingData.projects.staging.length
})`}
/>
<Tab
label={`${intl.formatMessage({ id: 'pending' })} (${
climateWarehouseStore.stagingData &&
climateWarehouseStore.stagingData.projects.pending.length
})`}
/>
</>
<Tab
label={`${intl.formatMessage({ id: 'staging' })} (${
climateWarehouseStore.stagingData &&
climateWarehouseStore.stagingData.projects.staging.length
})`}
/>
)}
{pageIsMyRegistryPage && (
<Tab
label={`${intl.formatMessage({ id: 'pending' })} (${
climateWarehouseStore.stagingData &&
climateWarehouseStore.stagingData.projects.pending.length
})`}
/>
)}
</Tabs>
<StyledCSVOperationsContainer>
Expand Down
28 changes: 14 additions & 14 deletions src/pages/Units/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,20 +281,20 @@ const Units = withRouter(() => {
<Tabs value={tabValue} onChange={handleTabChange}>
<Tab label={intl.formatMessage({ id: 'committed' })} />
{pageIsMyRegistryPage && (
<>
<Tab
label={`${intl.formatMessage({ id: 'staging' })} (${
climateWarehouseStore.stagingData &&
climateWarehouseStore.stagingData.units.staging.length
})`}
/>
<Tab
label={`${intl.formatMessage({ id: 'pending' })} (${
climateWarehouseStore.stagingData &&
climateWarehouseStore.stagingData.units.pending.length
})`}
/>
</>
<Tab
label={`${intl.formatMessage({ id: 'staging' })} (${
climateWarehouseStore.stagingData &&
climateWarehouseStore.stagingData.units.staging.length
})`}
/>
)}
{pageIsMyRegistryPage && (
<Tab
label={`${intl.formatMessage({ id: 'pending' })} (${
climateWarehouseStore.stagingData &&
climateWarehouseStore.stagingData.units.pending.length
})`}
/>
)}
</Tabs>
<StyledCSVOperationsContainer>
Expand Down

0 comments on commit 26474d2

Please sign in to comment.