Skip to content

Commit

Permalink
feat(Migration): com header
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Jun 26, 2018
1 parent 6ddcf50 commit 1d83fc6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/blockchain-info-components/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
}
},
"presets": ["es2015", "react", "stage-0"],
"plugins": ["babel-plugin-styled-components"]
"plugins": ["inline-react-svg", "babel-plugin-styled-components"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@ module.exports = {
{
test: /\.(ico|jpg|jpeg|png|gif|eot|otf|svg|webp|ttf|woff|woff2)(\?.*)?$/,
loader: require.resolve('file-loader'),
exclude: /\.inline.svg$/,
query: {
name: 'static/media/[name].[hash:8].[ext]'
}
},
{
test: /\.inline.svg$/,
use: '@svgr/webpack'
}
]
}
Expand Down
7 changes: 5 additions & 2 deletions packages/blockchain-info-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blockchain-info-components",
"version": "0.0.12",
"version": "0.0.19",
"description": "A shared UI components library for blockchain.info applications.",
"license": "ISC",
"author": {
Expand Down Expand Up @@ -54,11 +54,14 @@
"dependencies": {
"polished": "1.9.0",
"prop-types": "15.6.1",
"react-intl": "2.4.0",
"ramda": "0.25.0",
"react": "16.4.0",
"react-datetime": "2.14.0",
"react-intl": "2.4.0",
"react-onclickoutside": "6.7.1",
"styled-components": "3.3.2"
},
"devDependencies": {
"babel-cli": "^6.26.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from "react"
import styled from "styled-components"

import BlockchainLogotypeVector from "./logotype.inline.svg"
import BCLogo from "./logotype.component.svg"

const Logo = styled(BlockchainLogotypeVector)`
const Logo = styled(BCLogo)`
margin-right: 2rem;
height: ${props => (props.height ? props.height : "1.2rem")};
Expand Down

0 comments on commit 1d83fc6

Please sign in to comment.