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'
import { has } from 'lodash'
// import mmmLogo from '../../img/mmm-logo-52x50.png'
import secoLogo from '../../img/seco-logo-48x50.png'
import { showLanguageButton } from '../../configs/sampo/GeneralConfig'
const styles = theme => ({
root: {
......@@ -236,12 +237,12 @@ class TopBar extends React.Component {
>
{intl.get('topBar.instructions')}
</Button>
<TopBarLanguageButton
currentLocale={currentLocale}
availableLocales={availableLocales}
loadLocales={this.props.loadLocales}
/>
{showLanguageButton &&
<TopBarLanguageButton
currentLocale={currentLocale}
availableLocales={availableLocales}
loadLocales={this.props.loadLocales}
/>}
</div>
<a
className={classes.secoLogo}
......
......@@ -2,8 +2,10 @@ export const rootUrl = ''
export const defaultLocale = 'en'
export const showLanguageButton = true
export const publishedPort = 3006
export const MAPBOX_ACCESS_TOKEN = 'pk.eyJ1IjoiZWtrb25lbiIsImEiOiJjam5vampzZ28xd2dyM3BzNXR0Zzg4azl4In0.eozyF-bBaZbA3ibhvJlJpQ'
export const documentFinderAPIUrl = 'https://data.finlex.fi/document-finder-backend'
\ No newline at end of file
export const documentFinderAPIUrl = 'https://data.finlex.fi/document-finder-backend'
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