This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #915 from City-of-Helsinki/release/0.2.0
Release 0.2.0
- Loading branch information
Showing
35 changed files
with
648 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import React from 'react'; | ||
|
||
function BrowserWarning() { | ||
return ( | ||
<div> | ||
<p className="alert alert-warning"> | ||
Currently, Varaamo does not support Internet Explorer. | ||
We are investigating this issue and finding a solution. | ||
Meanwhile, use another browser (such as | ||
<a href="https://www.google.com/chrome/"> Chrome</a> | ||
, | ||
<a href="https://www.mozilla.org/en-US/firefox/new/"> Firefox </a> | ||
or | ||
<a href="https://www.microsoft.com/en-us/windows/microsoft-edge"> Edge</a> | ||
). | ||
</p> | ||
<p className="alert alert-warning"> | ||
Varaamo ei tue Internet Explorer selainta tällä hetkellä. | ||
Selvitämme ongelmaa sen ratkaisemiseksi. | ||
Sillä välin, käytä toista selainta (kuten | ||
<a href="https://www.google.com/chrome/"> Chrome</a> | ||
, | ||
<a href="https://www.mozilla.org/en-US/firefox/new/"> Firefox </a> | ||
tai | ||
<a href="https://www.microsoft.com/en-us/windows/microsoft-edge"> Edge</a> | ||
). | ||
</p> | ||
<p className="alert alert-warning"> | ||
Varaamo fungerar inte längre med Internet Explorer. | ||
Vi arbetar med att lösa problemet. | ||
Under tiden så var vänlig och använd någon annan browser (t.ex | ||
<a href="https://www.google.com/chrome/"> Chrome</a> | ||
, | ||
<a href="https://www.mozilla.org/en-US/firefox/new/"> Firefox </a> | ||
eller | ||
<a href="https://www.microsoft.com/en-us/windows/microsoft-edge"> Edge</a> | ||
). | ||
</p> | ||
</div> | ||
); | ||
} | ||
|
||
export default BrowserWarning; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react'; | ||
|
||
import BrowserWarning from './BrowserWarning'; | ||
import { shallowWithIntl } from 'utils/testUtils'; | ||
|
||
describe('pages/browser-warning/BrowserWarning', () => { | ||
function getWrapper() { | ||
return shallowWithIntl(<BrowserWarning />); | ||
} | ||
|
||
test('renders a browser warning div', () => { | ||
const div = getWrapper().find('div'); | ||
expect(div.length).toBe(1); | ||
}); | ||
|
||
test('renders a browser warning paragraph', () => { | ||
const p = getWrapper().find('p'); | ||
expect(p.length).toBe(3); | ||
}); | ||
|
||
test('renders all specified browser links', () => { | ||
const a = getWrapper().find('a'); | ||
expect(a.length).toBe(9); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import BrowserWarning from './BrowserWarning'; | ||
|
||
export default BrowserWarning; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.