Skip to content

Commit eab3252

Browse files
committed
feat: swap heading
1 parent 1f9abee commit eab3252

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

components/PackageFunctionList.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Heading } from '@datacamp/waffles/heading';
12
import { mediaQuery } from '@datacamp/waffles/helpers';
23
import { Input } from '@datacamp/waffles/input';
34
import styled from '@emotion/styled';
@@ -19,7 +20,7 @@ type Props = {
1920
packageVersion: string;
2021
};
2122

22-
const FlexContainer = styled.div({
23+
const Flex = styled.div({
2324
[mediaQuery.aboveMedium]: {
2425
alignItems: 'center',
2526
display: 'flex',
@@ -28,11 +29,6 @@ const FlexContainer = styled.div({
2829
display: 'block',
2930
});
3031

31-
const Heading = styled.h2({
32-
fontSize: '1.5rem',
33-
fontWeight: 'bold',
34-
});
35-
3632
const InputWrapper = styled.div({
3733
[mediaQuery.aboveMedium]: {
3834
marginTop: 0,
@@ -75,11 +71,11 @@ export default function PackageFunctionList({
7571
return (
7672
<div>
7773
<CourseAds />
78-
<FlexContainer>
74+
<Flex>
7975
<Heading>{`Functions in ${packageName} (${packageVersion})`}</Heading>
8076
<InputWrapper>
8177
<label className="sr-only" htmlFor="functionSearch">
82-
Search functions
78+
Search all functions
8379
</label>
8480
<Input
8581
id="functionSearch"
@@ -89,7 +85,7 @@ export default function PackageFunctionList({
8985
value={searchInput}
9086
/>
9187
</InputWrapper>
92-
</FlexContainer>
88+
</Flex>
9389
<GridContainer>
9490
{filteredFunctions.map((fn) => (
9591
<ClickableCard

0 commit comments

Comments
 (0)