Skip to content

Commit

Permalink
fix: rename Styled component to Themed
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrax committed Jun 3, 2021
1 parent 4acd6fc commit 576104e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
10 changes: 5 additions & 5 deletions example/src/gatsby-theme-contact/components/details.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/** @jsx jsx */
import React from 'react'
import { jsx, Styled } from 'theme-ui'
import { jsx, Themed } from 'theme-ui'

const Details = () => (
<>
<Styled.h3 sx={{ mt: 0 }}>Address</Styled.h3>
<Themed.h3 sx={{ mt: 0 }}>Address</Themed.h3>
<span>
David Mathews
<br />
Expand All @@ -13,12 +13,12 @@ const Details = () => (
Moscow Kentucky 77382
</span>

<Styled.h3>Phone</Styled.h3>
<Themed.h3>Phone</Themed.h3>
<span>(357) 616-5411</span>

<Styled.h3>Email</Styled.h3>
<Themed.h3>Email</Themed.h3>
<span>
<Styled.a href='mailto:email@example.com'>email@example.com</Styled.a>
<Themed.a href='mailto:email@example.com'>email@example.com</Themed.a>
</span>
</>
)
Expand Down
10 changes: 5 additions & 5 deletions gatsby-theme-contact/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ Gatsby theme for a styled serverless contact page using Netlify Forms. It can al
// src/gatsby-theme-contact/components/details.js
/** @jsx jsx */
import React from 'react'
import { jsx, Styled } from 'theme-ui'
import { jsx, Themed } from 'theme-ui'

const Details = () => (
<>
<Styled.h3 sx={{ mt: 0 }}>Address</Styled.h3>
<Themed.h3 sx={{ mt: 0 }}>Address</Themed.h3>
<span>
David Mathews
<br />
Expand All @@ -59,12 +59,12 @@ Gatsby theme for a styled serverless contact page using Netlify Forms. It can al
Moscow Kentucky 77382
</span>

<Styled.h3>Phone</Styled.h3>
<Themed.h3>Phone</Themed.h3>
<span>(357) 616-5411</span>

<Styled.h3>Email</Styled.h3>
<Themed.h3>Email</Themed.h3>
<span>
<Styled.a href='mailto:email@example.com'>email@example.com</Styled.a>
<Themed.a href='mailto:email@example.com'>email@example.com</Themed.a>
</span>
</>
)
Expand Down
4 changes: 2 additions & 2 deletions gatsby-theme-contact/src/components/header.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react'
import { Styled } from 'theme-ui'
import { Themed } from 'theme-ui'

const Header = () => (
<>
<Styled.h2>Get in touch</Styled.h2>
<Themed.h2>Get in touch</Themed.h2>
</>
)

Expand Down
6 changes: 3 additions & 3 deletions gatsby-theme-contact/src/components/intro.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Styled } from 'theme-ui'
import { Themed } from 'theme-ui'

const Intro = () => (
<>
<Styled.p>
<Themed.p>
If you want to get in touch for your next project or you still have
questions left, do not hesitate to start a chat.
</Styled.p>
</Themed.p>
</>
)

Expand Down
12 changes: 6 additions & 6 deletions gatsby-theme-contact/src/components/socials.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @jsx jsx */
import React from 'react'
import { jsx, Styled, useThemeUI } from 'theme-ui'
import { jsx, Themed, useThemeUI } from 'theme-ui'
import { SocialIcon } from 'react-social-icons'
import useSiteMetadata from '../hooks/use-site-metadata'

Expand All @@ -9,10 +9,10 @@ const Socials = () => {
const { theme } = useThemeUI()
return social ? (
<>
<Styled.h3>Socials</Styled.h3>
<Styled.ul sx={{ listStyle: 'none', p: 0, m: 0 }}>
<Themed.h3>Socials</Themed.h3>
<Themed.ul sx={{ listStyle: 'none', p: 0, m: 0 }}>
{social.map(({ url }) => (
<Styled.li
<Themed.li
key={url}
sx={{
display: 'inline',
Expand All @@ -24,9 +24,9 @@ const Socials = () => {
bgColor='transparent'
fgColor={theme.colors.text}
/>
</Styled.li>
</Themed.li>
))}
</Styled.ul>
</Themed.ul>
</>
) : null
}
Expand Down

0 comments on commit 576104e

Please sign in to comment.