Browse Source

CI

gre-patch-1
Juan Cortes Ross 6 years ago
parent
commit
2b8fdcbdd6
No known key found for this signature in database GPG Key ID: 34A99C03E9455EB8
  1. 23
      src/components/HSMStatusBanner.js

23
src/components/HSMStatusBanner.js

@ -13,8 +13,7 @@ import IconExclamationCircle from 'icons/ExclamationCircle'
import IconChevronRight from 'icons/ChevronRight' import IconChevronRight from 'icons/ChevronRight'
import Box from 'components/base/Box' import Box from 'components/base/Box'
import { from } from 'rxjs' import { SHOW_MOCK_HSMWARNINGS } from '../config/constants'
import { SHOW_MOCK_HSMWARNINGS } from "../config/constants";
const CloseIconContainer = styled.div` const CloseIconContainer = styled.div`
position: absolute; position: absolute;
@ -54,18 +53,18 @@ class HSMStatusBanner extends PureComponent<Props, State> {
} }
componentWillMount() { componentWillMount() {
if(SHOW_MOCK_HSMWARNINGS){ if (SHOW_MOCK_HSMWARNINGS) {
this.setState({ this.setState({
pendingMessages: [ pendingMessages: [
{ {
id: "mock1", id: 'mock1',
message: "Lorem Ipsum dolor sit amet #1" message: 'Lorem Ipsum dolor sit amet #1',
}, },
{ {
id: "mock2", id: 'mock2',
message: "Lorem Ipsum dolor sit amet #2" message: 'Lorem Ipsum dolor sit amet #2',
} },
] ],
}) })
} }
@ -166,15 +165,15 @@ const styles = {
borderRadius: 4, borderRadius: 4,
fontSize: 13, fontSize: 13,
paddingTop: 17, paddingTop: 17,
padding:15, padding: 15,
color: 'white', color: 'white',
fontWeight: 'bold', fontWeight: 'bold',
paddingRight: 30, paddingRight: 30,
width: 350, width: 350,
}, },
message: { message: {
marginTop: -3 marginTop: -3,
} },
} }
export default translate()(HSMStatusBanner) export default translate()(HSMStatusBanner)

Loading…
Cancel
Save