Skip to content

Commit c28c43f

Browse files
authored
Padms/2179 (#2232)
* Refactor FigCaption to tailwind #2179 * ♻️ Some more changes use mt-2 #2179 * 🔥 Cleanup #2179 * 🚨 Lint warnings #2179
1 parent 697f6de commit c28c43f

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

web/components/src/FigureCaption/Attribution.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { forwardRef, HTMLAttributes } from 'react'
2+
23
export type AttributionProps = HTMLAttributes<HTMLDivElement>
34

45
export const Attribution = forwardRef<HTMLDivElement, AttributionProps>(function ({ children, ...rest }, ref) {
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
import { forwardRef, HTMLAttributes } from 'react'
1+
import { HTMLAttributes } from 'react'
22
import { twMerge } from 'tailwind-merge'
33

44
export type FigureCaptionProps = {
55
size?: 'small' | 'medium'
66
} & HTMLAttributes<HTMLElement>
77

8-
export const FigureCaption = forwardRef<HTMLElement, FigureCaptionProps>(function FigureCaption({
9-
size = 'small',
10-
children,
11-
className,
12-
...rest
13-
}) {
8+
export const FigureCaption = ({ size = 'small', children, className, ...rest }: FigureCaptionProps) => {
149
return (
1510
<figcaption
1611
className={twMerge(
@@ -22,4 +17,4 @@ export const FigureCaption = forwardRef<HTMLElement, FigureCaptionProps>(functio
2217
{children}
2318
</figcaption>
2419
)
25-
})
20+
}

web/pageComponents/shared/Hero/FiftyFiftyHero.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import TitleText from '../portableText/TitleText'
44
import type { HeroType } from '../../../types/types'
55
import { BackgroundContainer } from '@components'
66
import ReadMoreLink from '../ReadMoreLink'
7-
import RichText from '../portableText/RichText'
87
import Blocks from '../portableText/Blocks'
98

109
const StyledHero = styled(BackgroundContainer)`

web/pageComponents/shared/textTeaser/TextTeaser.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Teaser as EnvisTeaser, Link, BackgroundContainer } from '@components'
1+
import { Teaser as EnvisTeaser, BackgroundContainer } from '@components'
22
import styled from 'styled-components'
33
import IngressText from '../portableText/IngressText'
44
import TitleText from '../portableText/TitleText'

0 commit comments

Comments
 (0)