diff --git a/src/components/InfoBanner.js b/src/components/InfoBanner.js index 7efe1152e3..278e6e3173 100644 --- a/src/components/InfoBanner.js +++ b/src/components/InfoBanner.js @@ -1,8 +1,21 @@ import React from 'react'; -const InfoBanner = ({ visible, onHide }) => { +const InfoBanner = ({ visible, onHide, language }) => { if (!visible) return null; + const SUBMISSION_REPO_URL = + language === 'fi' + ? 'https://fullstackopen.com/osa6/flux_arkkitehtuuri_ja_zustand#tehtavarepositorio' + : 'https://fullstackopen.com/en/part6/flux_architecture_and_zustand#submission-repository'; + + const text = + language === 'fi' + ? 'Osan 6 tehtävien palautusrepositorion formaatti on muuttunut, ' + : 'The format of submission repository in the part 6 has changed, '; + const text_here = + language === 'fi' + ? 'katso tarkemmin täältä' + : 'see more details here'; const style = { padding: 10, borderStyle: 'solid', @@ -49,28 +62,15 @@ const InfoBanner = ({ visible, onHide }) => {