Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
feat: make Boltz logo clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Feb 18, 2019
1 parent e8a85c6 commit 2b98bf7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/components/taskbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const styles = theme => ({
width: 'auto',
height: 'auto',
margin: '20px',
cursor: 'pointer',
alignItems: 'baseline',
justifyContent: 'space-between',
},
Expand All @@ -42,7 +43,7 @@ const styles = theme => ({

const TaskBar = ({ classes, goHome, goRefund, goFaq }) => (
<View className={classes.wrapper}>
<View className={classes.logo}>
<View className={classes.logo} onClick={() => goHome()}>
<img
src={boltz_logo}
height={38}
Expand Down
18 changes: 16 additions & 2 deletions src/components/view/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import React from 'react';
import PropTypes from 'prop-types';

const View = ({ children, style, className, inputRef, ...otherProps }) => {
const View = ({
children,
style,
className,
onClick,
inputRef,
...otherProps
}) => {
let newStyle = {
display: otherProps.noFlex ? 'inline' : 'flex',
};
Expand All @@ -10,7 +17,13 @@ const View = ({ children, style, className, inputRef, ...otherProps }) => {
}

return (
<div className={className} style={newStyle} ref={inputRef} {...otherProps}>
<div
className={className}
style={newStyle}
onClick={onClick}
ref={inputRef}
{...otherProps}
>
{children}
</div>
);
Expand All @@ -20,6 +33,7 @@ View.propTypes = {
children: PropTypes.node,
style: PropTypes.object,
className: PropTypes.string,
onClick: PropTypes.func,
otherProps: PropTypes.array,
inputRef: PropTypes.string,
};
Expand Down
2 changes: 1 addition & 1 deletion src/views/faq/faq.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Faq extends React.Component {
neither use any trackers nor log any data that could identify our
users.{' '}
<b>Please note that Boltz is currently in its alpha stage</b> so
so {`don't`} be too reckless when using it. If you experience any
{`don't`} be too reckless when using it. If you experience any
issues or have some feedback feel free to{' '}
<a href={twitterLink}>contact us</a>.
</p>
Expand Down

0 comments on commit 2b98bf7

Please sign in to comment.