Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 1b40b7a

Browse files
committed
Rename to TextMedia
1 parent 6ee2c7d commit 1b40b7a

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

components/organisms/FiftyFifty/index.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

components/organisms/FiftyFifty/FiftyFifty.js renamed to components/organisms/TextMedia/TextMedia.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ import Container from '@/components/atoms/Container'
33
import cn from 'classnames'
44
import PropTypes from 'prop-types'
55
import React from 'react'
6-
import styles from './FiftyFifty.module.css'
6+
import styles from './TextMedia.module.css'
77

88
/**
9-
* Render the FiftyFifty component.
9+
* Render the TextMedia component.
1010
*
11-
* @param {object} props FiftyFifty component props.
11+
* @param {object} props TextMedia component props.
1212
* @param {string} props.body The body text.
1313
* @param {string} props.className The className.
1414
* @param {object} props.cta The cta object with text and url strings.
1515
* @param {object} props.image The image object with url and alt text.
1616
* @param {string} props.title The title.
17-
* @return {Element} The FiftyFifty component.
17+
* @return {Element} The TextMedia component.
1818
*/
19-
export default function FiftyFifty({body, className, cta, image, title}) {
19+
export default function TextMedia({body, className, cta, image, title}) {
2020
return (
2121
<Container>
22-
<section className={cn(styles.fiftyFifty, className)}>
22+
<section className={cn(styles.textMedia, className)}>
2323
<div className={styles.content}>
2424
<h1 className={styles.title}>{title}</h1>
2525
{body && <p className={styles.body}>{body}</p>}
@@ -45,7 +45,7 @@ export default function FiftyFifty({body, className, cta, image, title}) {
4545
)
4646
}
4747

48-
FiftyFifty.propTypes = {
48+
TextMedia.propTypes = {
4949
body: PropTypes.string,
5050
className: PropTypes.string,
5151
cta: PropTypes.shape({
@@ -59,7 +59,7 @@ FiftyFifty.propTypes = {
5959
title: PropTypes.string
6060
}
6161

62-
FiftyFifty.defaultProps = {
62+
TextMedia.defaultProps = {
6363
title: 'Here is a H2 headline in a bold font.',
6464
body:
6565
'Let me tell you a little story about how I went sledging in the Australian Alps, and got lost in the process. Oh what a riot that was, and I nearly lost...',

components/organisms/FiftyFifty/FiftyFifty.module.css renamed to components/organisms/TextMedia/TextMedia.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.fiftyFifty {
1+
.textMedia {
22
@apply desktop:grid desktop:grid-cols-12 desktop:gap-16;
33

44
& .content,

components/organisms/FiftyFifty/FiftyFifty.stories.mdx renamed to components/organisms/TextMedia/TextMedia.stories.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import {Canvas, Meta, Story} from '@storybook/addon-docs/blocks'
2-
import FiftyFifty from './'
2+
import TextMedia from './'
33

4-
<Meta title="Components/Molecules/FiftyFifty" component={FiftyFifty} />
4+
<Meta title="Components/Molecules/TextMedia" component={TextMedia} />
55

66
# Component
77

88
Use this to display a large CTA, usually at the top of a page.
99

1010
<Canvas>
1111
<Story name="Component">
12-
<FiftyFifty
12+
<TextMedia
1313
subtitle="Check it out"
1414
title="New Designs"
1515
body="Our amazing new design is here! Get it while it's hot, it won't be hot for long... uh oh, already cooling."
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {default} from './TextMedia'

0 commit comments

Comments
 (0)