Skip to content
This repository has been archived by the owner on Oct 12, 2019. It is now read-only.

Commit

Permalink
🌐 add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Apr 1, 2019
1 parent ae1ce63 commit a06a20e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
11 changes: 6 additions & 5 deletions src/components/Forms/components/AddFavoriteTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
import React from 'react'
import Select from 'react-select'
import {Grid} from '@material-ui/core'
import {withTranslation} from "react-i18next"
import {useTranslation} from "react-i18next"
import {useStore} from '../../../hooks'
import {withPage} from '../../shared'

export const AddTool = ({t}) => {
export const AddTool = () => {
const [t] = useTranslation("dropdowns")
const [presetT] = useTranslation("preset")
const options = t("fishing-gear", {returnObjects: true})
const placeholder = "Favorite Tool"
const placeholder = presetT("placeholders.favoriteTool")
const disabled = false
const {
handleCustomListChange,
Expand Down Expand Up @@ -55,4 +56,4 @@ export const AddTool = ({t}) => {
}


export default withPage(withTranslation("dropdowns"))(AddTool)
export default AddTool
18 changes: 6 additions & 12 deletions src/components/Preset.jsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
import React from 'react'
import {Page} from './shared'
import {withPage} from './shared'
import {/**AddActivity, AddSpecie, AddZO, AddFishingPermit, AddPort, **/AddTool} from './Forms/components/AddFavoriteTool'
import {
Grid, withTheme
} from '@material-ui/core'
import {Grid} from '@material-ui/core'

export const Preset = () => {

return (
<Page namespace="preset" style={{marginBottom: 64}}>
{
<Grid>
<AddTool/>
</Grid>
}
</Page>
<Grid>
<AddTool/>
</Grid>
)

}

export default Preset
export default withPage(Preset, {namespace: "preset"})

0 comments on commit a06a20e

Please sign in to comment.