Skip to content

Commit

Permalink
Fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bombassaro committed Oct 19, 2020
1 parent f0f0757 commit 1cb81f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/Topbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Topbar = ({content, theme}) => {
const {color} = theme;

return (
<Block align="row center" bg={`${color}`} fc="white" custom="Topbar-Prensa-root" w="100p">
<Block align="row center" bg={`color-${color}`} fc="color-white" custom="Topbar-Prensa-root" w="100p">
<Block align="row middle between" custom="wrap" w="100p">
<Block custom="left">{leftContent && leftContent}</Block>
<Block>{centerContent && centerContent}</Block>
Expand All @@ -22,9 +22,9 @@ const Topbar = ({content, theme}) => {

Topbar.propTypes = {
content: PropTypes.shape({
leftContent: PropTypes.oneOf([PropTypes.func, PropTypes.object, PropTypes.array, PropTypes.node]),
centerContent: PropTypes.oneOf([PropTypes.func, PropTypes.object, PropTypes.array, PropTypes.node]),
rightContent: PropTypes.oneOf([PropTypes.func, PropTypes.object, PropTypes.array, PropTypes.node]),
leftContent: PropTypes.object,
centerContent: PropTypes.object,
rightContent: PropTypes.object,
}),
theme: PropTypes.shape({
color: PropTypes.oneOf(colors)
Expand Down

0 comments on commit 1cb81f1

Please sign in to comment.