Skip to content
Snippets Groups Projects
Commit 7adda3b9 authored by esikkala's avatar esikkala
Browse files

Add config for lang button

parent 58fbe1d0
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ import Divider from '@material-ui/core/Divider' ...@@ -18,6 +18,7 @@ import Divider from '@material-ui/core/Divider'
import { has } from 'lodash' import { has } from 'lodash'
// import mmmLogo from '../../img/mmm-logo-52x50.png' // import mmmLogo from '../../img/mmm-logo-52x50.png'
import secoLogo from '../../img/seco-logo-48x50.png' import secoLogo from '../../img/seco-logo-48x50.png'
import { showLanguageButton } from '../../configs/sampo/GeneralConfig'
const styles = theme => ({ const styles = theme => ({
root: { root: {
...@@ -236,12 +237,12 @@ class TopBar extends React.Component { ...@@ -236,12 +237,12 @@ class TopBar extends React.Component {
> >
{intl.get('topBar.instructions')} {intl.get('topBar.instructions')}
</Button> </Button>
{showLanguageButton &&
<TopBarLanguageButton <TopBarLanguageButton
currentLocale={currentLocale} currentLocale={currentLocale}
availableLocales={availableLocales} availableLocales={availableLocales}
loadLocales={this.props.loadLocales} loadLocales={this.props.loadLocales}
/> />}
</div> </div>
<a <a
className={classes.secoLogo} className={classes.secoLogo}
......
...@@ -2,8 +2,10 @@ export const rootUrl = '' ...@@ -2,8 +2,10 @@ export const rootUrl = ''
export const defaultLocale = 'en' export const defaultLocale = 'en'
export const showLanguageButton = true
export const publishedPort = 3006 export const publishedPort = 3006
export const MAPBOX_ACCESS_TOKEN = 'pk.eyJ1IjoiZWtrb25lbiIsImEiOiJjam5vampzZ28xd2dyM3BzNXR0Zzg4azl4In0.eozyF-bBaZbA3ibhvJlJpQ' export const MAPBOX_ACCESS_TOKEN = 'pk.eyJ1IjoiZWtrb25lbiIsImEiOiJjam5vampzZ28xd2dyM3BzNXR0Zzg4azl4In0.eozyF-bBaZbA3ibhvJlJpQ'
export const documentFinderAPIUrl = 'https://data.finlex.fi/document-finder-backend' export const documentFinderAPIUrl = 'https://data.finlex.fi/document-finder-backend'
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment