-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use the utrecht typography react components, instead of onl…
…y the css classes
- Loading branch information
1 parent
dcb5c30
commit 57eee12
Showing
7 changed files
with
56 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
import React from 'react'; | ||
import { Heading1, Heading1Props } from '@utrecht/component-library-react'; | ||
import './heading.scss'; | ||
import clsx from 'clsx'; | ||
|
||
export interface Heading1Props { | ||
className?: string; | ||
children?: React.ReactNode; | ||
} | ||
|
||
export const Heading1: React.FC<Heading1Props> = (props: Heading1Props) => { | ||
const rootClassNames = clsx('utrecht-heading-1', props.className); | ||
return <h1 className={rootClassNames}>{props.children}</h1>; | ||
}; | ||
export { Heading1, Heading1Props }; | ||
export default Heading1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
import React from 'react'; | ||
import { Heading2, Heading2Props } from '@utrecht/component-library-react'; | ||
import './heading.scss'; | ||
import clsx from 'clsx'; | ||
|
||
export interface Heading2Props { | ||
className?: string; | ||
children?: React.ReactNode; | ||
} | ||
|
||
export const Heading2 = (props: Heading2Props) => { | ||
const rootClassNames = clsx('utrecht-heading-2', props.className); | ||
return <h2 className={rootClassNames}>{props.children}</h2>; | ||
}; | ||
export { Heading2, Heading2Props }; | ||
export default Heading2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
import React from 'react'; | ||
import { Heading3, Heading3Props } from '@utrecht/component-library-react'; | ||
import './heading.scss'; | ||
import clsx from 'clsx'; | ||
|
||
export interface Heading3Props { | ||
className?: string; | ||
children?: React.ReactNode; | ||
} | ||
|
||
export const Heading3: React.FC<Heading3Props> = (props: Heading3Props) => { | ||
const rootClassNames = clsx('utrecht-heading-3', props.className); | ||
return <h3 className={rootClassNames}>{props.children}</h3>; | ||
}; | ||
export { Heading3, Heading3Props }; | ||
export default Heading3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
import React from 'react'; | ||
import { Heading4, Heading4Props } from '@utrecht/component-library-react'; | ||
import './heading.scss'; | ||
import clsx from 'clsx'; | ||
|
||
export interface Heading4Props { | ||
className?: string; | ||
children?: React.ReactNode; | ||
} | ||
|
||
export const Heading4: React.FC<Heading4Props> = (props: Heading4Props) => { | ||
const rootClassNames = clsx('utrecht-heading-4', props.className); | ||
return <h4 className={rootClassNames}>{props.children}</h4>; | ||
}; | ||
export { Heading4, Heading4Props }; | ||
export default Heading4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
import React from 'react'; | ||
import { Heading5, Heading5Props } from '@utrecht/component-library-react'; | ||
import './heading.scss'; | ||
import clsx from 'clsx'; | ||
|
||
export interface Heading5Props { | ||
className?: string; | ||
children?: React.ReactNode; | ||
} | ||
|
||
export const Heading5: React.FC<Heading5Props> = (props: Heading5Props) => { | ||
const rootClassNames = clsx('utrecht-heading-5', props.className); | ||
return <h5 className={rootClassNames}>{props.children}</h5>; | ||
}; | ||
export { Heading5, Heading5Props }; | ||
export default Heading5; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.