Skip to content

Commit 4f2669d

Browse files
committed
use Text component for p tags
1 parent d229a98 commit 4f2669d

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

src/pages/developers/tutorials.tsx

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -182,19 +182,20 @@ const TutorialsPage = ({
182182
>
183183
<Translation id="page-tutorial-subtitle" />
184184
</Text>
185+
185186
<Modal isOpen={isModalOpen} setIsOpen={setModalOpen}>
186187
<Heading fontSize="2rem" lineHeight="1.4" mt={0} mb={4}>
187188
<Translation id="page-tutorial-submit-btn" />
188189
</Heading>
189-
<p>
190+
<Text>
190191
<Translation id="page-tutorial-listing-policy-intro" />{" "}
191192
<Link to="/contributing/content-resources/">
192193
<Translation id="page-tutorial-listing-policy" />
193194
</Link>
194-
</p>
195-
<p>
195+
</Text>
196+
<Text>
196197
<Translation id="page-tutorial-submit-tutorial" />
197-
</p>
198+
</Text>
198199
<Flex
199200
flexDirection={{ base: "column", md: "initial" }}
200201
maxH={{ base: 64, md: "initial" }}
@@ -214,13 +215,12 @@ const TutorialsPage = ({
214215
ml={0}
215216
mr={{ base: 0, md: 2 }}
216217
>
217-
<p>
218-
<b>
219-
<Translation id="page-tutorial-new-github" />
220-
</b>
221-
<br />
218+
<Text as="b">
219+
<Translation id="page-tutorial-new-github" />
220+
</Text>
221+
<Text>
222222
<Translation id="page-tutorial-new-github-desc" />
223-
</p>
223+
</Text>
224224
<ButtonLink
225225
leftIcon={<FaGithub />}
226226
variant="outline"
@@ -243,17 +243,16 @@ const TutorialsPage = ({
243243
ml={0}
244244
mr={{ base: 0, md: 2 }}
245245
>
246-
<p>
247-
<b>
248-
<Translation id="page-tutorial-pull-request" />
249-
</b>
250-
<br />
246+
<Text as="b">
247+
<Translation id="page-tutorial-pull-request" />
248+
</Text>
249+
<Text>
251250
<Translation id="page-tutorial-pull-request-desc-1" />{" "}
252251
<code>
253252
<Translation id="page-tutorial-pull-request-desc-2" />
254253
</code>{" "}
255254
<Translation id="page-tutorial-pull-request-desc-3" />
256-
</p>
255+
</Text>
257256
<ButtonLink
258257
leftIcon={<FaGithub />}
259258
variant="outline"
@@ -264,6 +263,7 @@ const TutorialsPage = ({
264263
</Flex>
265264
</Flex>
266265
</Modal>
266+
267267
<Button
268268
variant="outline"
269269
color="text"
@@ -289,6 +289,7 @@ const TutorialsPage = ({
289289
>
290290
<Translation id="page-tutorial-submit-btn" />
291291
</Button>
292+
292293
<Box
293294
boxShadow={tableBoxShadow}
294295
mb={8}

0 commit comments

Comments
 (0)