Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Refresh button #40

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/components/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const FlagWrapper = styled.div`
border: none;
background-color: Transparent;
outline: none;
cursor: pointer;
}
`;

Expand All @@ -34,6 +35,12 @@ const LogoHeader = styled.div`
justify-content: flex-start;
align-items: flex-start;
}
button {
border: none;
background-color: Transparent;
outline: none;
cursor: pointer;
}
`;

const UserInfo = styled.div`
Expand Down Expand Up @@ -66,7 +73,10 @@ class Header extends Component {
return (
<HeaderWrapper>
<LogoHeader>
<img alt="EBS logo" src={ebsLogo} />
<button onClick={() => window.location.reload(0)}>
<img alt="EBS logo" src={ebsLogo} />
</button>
{/* <input type="button" value="Reload Page" onClick="reload"> */}
</LogoHeader>
{this.props.userData != null && (
<UserInfo>
Expand Down
2 changes: 1 addition & 1 deletion src/redux/locale/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import LocalizedStrings from 'react-localization';
const strings = new LocalizedStrings({
en: {
time: 'Time',
prevDay: 'Prev Day',
prevDay: 'Previous Day',
nextDay: 'Next Day',
pickDate: 'Pick date',
booked: 'Booked',
Expand Down