Skip to content

Commit

Permalink
Merge pull request #22 from handball-referee/preview
Browse files Browse the repository at this point in the history
release: 1.3.1
  • Loading branch information
cevou authored Jan 21, 2021
2 parents 2cfd792 + e7a63a2 commit 9c74816
Show file tree
Hide file tree
Showing 6 changed files with 639 additions and 608 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.3.1](https://github.com/handball-referee/referee.app/compare/v1.3.0...v1.3.1) (2021-01-21)


### Bug Fixes

* always set selected language on html tag ([4bfd001](https://github.com/handball-referee/referee.app/commit/4bfd001ef3987fb0a84bab2fa88d7c0cf86de587))

## [1.3.0](https://github.com/cevou/referee.app/compare/v1.2.0...v1.3.0) (2020-11-23)


Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "referee.app",
"version": "1.3.0",
"version": "1.3.1",
"description": "App to study for handball referee tests",
"license": "MIT",
"scripts": {
Expand Down Expand Up @@ -28,6 +28,7 @@
"idb": "^5.0.2",
"react": "^16.11.0",
"react-dom": "^16.11.0",
"react-helmet": "^6.1.0",
"react-i18next": "^11.0.1",
"react-router": "^5.1.2",
"react-router-dom": "^5.1.2",
Expand All @@ -51,6 +52,7 @@
"@types/loadable__server": "^5.9.1",
"@types/react": "^16.9.9",
"@types/react-dom": "^16.9.2",
"@types/react-helmet": "^6.1.0",
"@types/react-router": "^5.1.2",
"@types/react-router-dom": "^5.1.2",
"@types/webpack": "^4.39.5",
Expand Down
4 changes: 3 additions & 1 deletion src/components/AppShell.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { FunctionComponent, useEffect } from "react";
import { useTranslation } from "react-i18next";
import { Helmet } from 'react-helmet';
import { Route, useHistory } from "react-router";
import loadable from "@loadable/component";
import Menu from "./Menu";
Expand Down Expand Up @@ -29,7 +30,7 @@ const Stats = loadable(() => import("./stats/Stats"), {
});

const AppShell: FunctionComponent = () => {
const { t } = useTranslation();
const { t, i18n } = useTranslation();
const { listen } = useHistory();
const { updateConfig } = useAnalytics();

Expand All @@ -42,6 +43,7 @@ const AppShell: FunctionComponent = () => {

return (
<div id="page-wrapper">
<Helmet htmlAttributes={{ lang: i18n.language }} />
<Menu />
<div id="page-body">
<Tracking />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Info = () => {
};

return (
<div id="info-wrapper">
<div id="info-wrapper" lang="en">
<div id="info" className="info-box">
<div>Website built by</div>
<div id="info-name">Christoph Kraemer</div>
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down
Loading

0 comments on commit 9c74816

Please sign in to comment.