Skip to content

Commit 8dfc05c

Browse files
committed
4031: Updates layout of revenue tab
1 parent a31b3de commit 8dfc05c

2 files changed

Lines changed: 22 additions & 17 deletions

File tree

src/components/sections/Explore/ExploreRevenue.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,30 @@ const ExploreRevenue = props => {
2020
mt={0}>
2121
Query revenue data
2222
</Link>
23-
</>
24-
}
25-
contentCenter={
26-
<>
2723
<Link
2824
href="/how-revenue-works#understanding-federal-revenues"
2925
linkType="HowWorks"
3026
mt={0}>
3127
How revenue works
3228
</Link>
29+
</>
30+
}
31+
contentRight={
32+
<>
3333
<Link
3434
href="/data-by-state-offshore-region"
3535
linkType="Location"
3636
mt={0}>
3737
Data by state and offshore region
3838
</Link>
39+
<Link
40+
href="/downloads/#Revenue"
41+
linkType="DownloadData"
42+
mt={0}>
43+
Downloads and documentation
44+
</Link>
3945
</>
4046
}
41-
contentRight={
42-
<Link
43-
href="/downloads/#Revenue"
44-
linkType="DownloadData"
45-
mt={0}>
46-
Downloads and documentation
47-
</Link>
48-
}
4947
/>
5048
)
5149
}

src/components/sections/TotalRevenue/TotalRevenue.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ const TotalRevenue = props => {
443443
return (
444444
<>
445445
<Grid container spacing={4}>
446-
<Grid item xs={12} md={7}>
446+
<Grid item xs={12} md={12}>
447447
<StackedBarChart2
448448
key={`trsbc__${ monthly }${ period }${ breakoutBy }`}
449449
data={chartData}
@@ -461,12 +461,13 @@ const TotalRevenue = props => {
461461
secondaryColor={theme.palette.explore[100]}
462462
handleBarHover={d => handleBarHover(d)}
463463
svgTitle={svgTitle}
464+
hideLegend={true}
464465
/>
465-
<Box fontStyle="italic" textAlign="left" fontSize="h6.fontSize">
466-
<Link href='/downloads/revenue/'>Source file</Link>
467-
</Box>
468466
</Grid>
469-
<Grid item xs={12} md={5}>
467+
<Grid item
468+
xs={12}
469+
md={12}
470+
style={{ paddingBottom: 0 }}>
470471
<ComparisonTable
471472
key={`trct__${ monthly }${ period }${ breakoutBy }`}
472473
ref={revenueComparison}
@@ -476,6 +477,12 @@ const TotalRevenue = props => {
476477
monthRange={monthRange}
477478
/>
478479
</Grid>
480+
<Grid item xs={12} md={12}
481+
style={{ paddingBottom: 0, paddingTop: 0 }}>
482+
<Box fontStyle="italic" textAlign="left" fontSize="h6.fontSize" m={0}>
483+
<Link href='/downloads/revenue/'>Source file</Link>
484+
</Box>
485+
</Grid>
479486
</Grid>
480487
</>
481488
)

0 commit comments

Comments
 (0)