From de5cb435953147a448595840fd5670d44f9e5de8 Mon Sep 17 00:00:00 2001 From: Maxence POUTORD Date: Thu, 1 Oct 2020 11:44:57 +0200 Subject: [PATCH] docs: update travis-ci url (badge) refactor: remove deadcode + small things --- README.md | 2 +- src/components/DarkToggle.js | 2 +- src/templates/blog-post-share-image.js | 6 ------ 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 29f2f7b58..7ab69526f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/maxpou/gatsby-starter-morning-dew.svg?branch=master)](https://travis-ci.org/maxpou/gatsby-starter-morning-dew) [![Netlify Status](https://api.netlify.com/api/v1/badges/d68027bd-19b5-44fd-a2a3-d1f05fc8201e/deploy-status)](https://app.netlify.com/sites/gatsby-starter-morning-dew/deploys) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) [![Maintainability](https://api.codeclimate.com/v1/badges/e09f1ac1a5cdb2987a6f/maintainability)](https://codeclimate.com/github/maxpou/gatsby-starter-morning-dew/maintainability) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) +[![Build Status](https://travis-ci.com/maxpou/gatsby-starter-morning-dew.svg?branch=master)](https://travis-ci.com/maxpou/gatsby-starter-morning-dew) [![Netlify Status](https://api.netlify.com/api/v1/badges/d68027bd-19b5-44fd-a2a3-d1f05fc8201e/deploy-status)](https://app.netlify.com/sites/gatsby-starter-morning-dew/deploys) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) [![Maintainability](https://api.codeclimate.com/v1/badges/e09f1ac1a5cdb2987a6f/maintainability)](https://codeclimate.com/github/maxpou/gatsby-starter-morning-dew/maintainability) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) # gatsby-starter-morning-dew diff --git a/src/components/DarkToggle.js b/src/components/DarkToggle.js index e668e7d95..f0b30c8f9 100644 --- a/src/components/DarkToggle.js +++ b/src/components/DarkToggle.js @@ -33,7 +33,7 @@ const DarkToggle = ({ isExpanded = false }) => { aria-label={`Activate ${oppositeColor} mode`} > {colorMode === 'dark' ? ( - {'sun + sun logo ) : ( moon Logo )} diff --git a/src/templates/blog-post-share-image.js b/src/templates/blog-post-share-image.js index 5082e72e2..17e50b83c 100644 --- a/src/templates/blog-post-share-image.js +++ b/src/templates/blog-post-share-image.js @@ -4,7 +4,6 @@ import styled from 'styled-components' import { createGlobalStyle } from 'styled-components' import useSiteMetadata from '../hooks/use-site-config' import useSiteImages from '../hooks/use-site-images' -import colors from '../tokens/colors' const GlobalPageStyle = createGlobalStyle` * { @@ -18,11 +17,6 @@ const GlobalPageStyle = createGlobalStyle` } ` -// styled.div.attrs({ color: p => p.color }); -styled.div.attrs(p => ({ - color: p.color, -})) - const Wrapper = styled.div` width: ${props => props.width || 440}px; height: ${props => props.height || 220}px;