Skip to content

Commit 631378c

Browse files
fix(table.stories): reinstate mock link styles
1 parent 9e28190 commit 631378c

File tree

1 file changed

+22
-50
lines changed

1 file changed

+22
-50
lines changed

src/components/Table/stories/mockMdxData.tsx

Lines changed: 22 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import * as React from "react"
22
import { Tbody, Td, Th, Thead, Tr } from "@chakra-ui/react"
33

4+
import InlineLink from "@/components/Link"
5+
46
/*
57
* Note on the Chakra Table components:
68
*
@@ -65,159 +67,129 @@ export const MdxEnergyConsumpData = () => (
6567
<Td textAlign="end">200</Td>
6668
<Td textAlign="end">77,000x</Td>
6769
<Td>
68-
<a
69-
target="_blank"
70-
rel="noopener"
70+
<InlineLink
7171
href="https://www.iea.org/commentaries/data-centres-and-energy-from-global-headlines-to-local-headaches"
7272
dir="ltr"
7373
>
7474
source
75-
<span aria-hidden="true"></span>
76-
</a>
75+
</InlineLink>
7776
</Td>
7877
</Tr>
7978
<Tr>
8079
<Td>Gold mining</Td>
8180
<Td textAlign="end">131</Td>
8281
<Td textAlign="end">50,000x</Td>
8382
<Td>
84-
<a
85-
target="_blank"
86-
rel="noopener"
83+
<InlineLink
8784
href="https://ccaf.io/cbnsi/cbeci/comparisons"
8885
dir="ltr"
8986
>
9087
source
91-
<span aria-hidden="true"></span>
92-
</a>
88+
</InlineLink>
9389
</Td>
9490
</Tr>
9591
<Tr>
9692
<Td>Bitcoin</Td>
9793
<Td textAlign="end">131</Td>
9894
<Td textAlign="end">50,000x</Td>
9995
<Td>
100-
<a
101-
target="_blank"
102-
rel="noopener"
96+
<InlineLink
10397
href="https://ccaf.io/cbnsi/cbeci/comparisons"
10498
dir="ltr"
10599
>
106100
source
107-
<span aria-hidden="true"></span>
108-
</a>
101+
</InlineLink>
109102
</Td>
110103
</Tr>
111104
<Tr>
112105
<Td>PoW Ethereum</Td>
113106
<Td textAlign="end">78</Td>
114107
<Td textAlign="end">30,000x</Td>
115108
<Td>
116-
<a
117-
target="_blank"
118-
rel="noopener"
109+
<InlineLink
119110
href="https://digiconomist.net/ethereum-energy-consumption"
120111
dir="ltr"
121112
>
122113
source
123-
<span aria-hidden="true"></span>
124-
</a>
114+
</InlineLink>
125115
</Td>
126116
</Tr>
127117
<Tr>
128118
<Td>Youtube (direct only)</Td>
129119
<Td textAlign="end">12</Td>
130120
<Td textAlign="end">4600x</Td>
131121
<Td>
132-
<a
133-
target="_blank"
134-
rel="noopener"
122+
<InlineLink
135123
href="https://www.gstatic.com/gumdrop/sustainability/google-2020-environmental-report.pdf"
136124
dir="ltr"
137125
>
138126
source
139-
<span aria-hidden="true"></span>
140-
</a>
127+
</InlineLink>
141128
</Td>
142129
</Tr>
143130
<Tr>
144131
<Td>Gaming in USA</Td>
145132
<Td textAlign="end">34</Td>
146133
<Td textAlign="end">13,000x</Td>
147134
<Td>
148-
<a
149-
target="_blank"
150-
rel="noopener"
135+
<InlineLink
151136
href="https://www.researchgate.net/publication/336909520_Toward_Greener_Gaming_Estimating_National_Energy_Use_and_Energy_Efficiency_Potential"
152137
dir="ltr"
153138
>
154139
source
155-
<span aria-hidden="true"></span>
156-
</a>
140+
</InlineLink>
157141
</Td>
158142
</Tr>
159143
<Tr>
160144
<Td>Netflix</Td>
161145
<Td textAlign="end">0.451</Td>
162146
<Td textAlign="end">173x</Td>
163147
<Td>
164-
<a
165-
target="_blank"
166-
rel="noopener"
148+
<InlineLink
167149
href="https://assets.ctfassets.net/4cd45et68cgf/7B2bKCqkXDfHLadrjrNWD8/e44583e5b288bdf61e8bf3d7f8562884/2021_US_EN_Netflix_EnvironmentalSocialGovernanceReport-2021_Final.pdf"
168150
dir="ltr"
169151
>
170152
source
171-
<span aria-hidden="true"></span>
172-
</a>
153+
</InlineLink>
173154
</Td>
174155
</Tr>
175156
<Tr>
176157
<Td>PayPal</Td>
177158
<Td textAlign="end">0.26</Td>
178159
<Td textAlign="end">100x</Td>
179160
<Td>
180-
<a
181-
target="_blank"
182-
rel="noopener"
161+
<InlineLink
183162
href="https://app.impaakt.com/analyses/paypal-consumed-264100-mwh-of-energy-in-2020-24-from-non-renewable-sources-27261"
184163
dir="ltr"
185164
>
186165
source
187-
<span aria-hidden="true"></span>
188-
</a>
166+
</InlineLink>
189167
</Td>
190168
</Tr>
191169
<Tr>
192170
<Td>AirBnB</Td>
193171
<Td textAlign="end">0.02</Td>
194172
<Td textAlign="end">8x</Td>
195173
<Td>
196-
<a
197-
target="_blank"
198-
rel="noopener"
174+
<InlineLink
199175
href="https://s26.q4cdn.com/656283129/files/doc_downloads/governance_doc_updated/Airbnb-ESG-Factsheet-(Final).pdf"
200176
dir="ltr"
201177
>
202178
source
203-
<span aria-hidden="true"></span>
204-
</a>
179+
</InlineLink>
205180
</Td>
206181
</Tr>
207182
<Tr>
208183
<Td>PoS Ethereum</Td>
209184
<Td textAlign="end">0.0026</Td>
210185
<Td textAlign="end">1x</Td>
211186
<Td>
212-
<a
213-
target="_blank"
214-
rel="noopener"
187+
<InlineLink
215188
href="https://carbon-ratings.com/eth-report-2022"
216189
dir="ltr"
217190
>
218191
source
219-
<span aria-hidden="true"></span>
220-
</a>
192+
</InlineLink>
221193
</Td>
222194
</Tr>
223195
</Tbody>

0 commit comments

Comments
 (0)