File tree 3 files changed +40
-0
lines changed
src/components/pages/Settings
3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react'
2
+ import { connect } from 'react-redux'
3
+ import { Typography } from '@material-ui/core'
4
+
5
+ const GameLanguageSelection = ( ) => (
6
+ < Typography paragraph >
7
+ To select a language, go to the Expansion tab above and use the edit button
8
+ to select the language for each Expansion.
9
+ </ Typography >
10
+ )
11
+
12
+ export default connect ( ) ( React . memo ( GameLanguageSelection ) )
Original file line number Diff line number Diff line change
1
+ import React from 'react'
2
+
3
+ import useExpansionHandling from 'hooks/useExpansionHandling'
4
+
5
+ import ExpansionPanel from 'components/molecules/ExpansionPanel'
6
+ import GameLanguageSelection from './GameLanguageSelection/GameLanguageSelection'
7
+
8
+ const Language = ( ) => {
9
+ const { expanded, createExpansionHandler } = useExpansionHandling ( )
10
+ const expansionKey = 'languageSelectionSet'
11
+ const expansionHandler = createExpansionHandler ( expansionKey )
12
+
13
+ return (
14
+ < ExpansionPanel
15
+ expanded = { expanded }
16
+ expansionHandler = { expansionHandler }
17
+ expansionKey = { expansionKey }
18
+ summary = "Language Selection"
19
+ data-test = "LanguageSelection"
20
+ >
21
+ < GameLanguageSelection />
22
+ </ ExpansionPanel >
23
+ )
24
+ }
25
+
26
+ export default React . memo ( Language )
Original file line number Diff line number Diff line change @@ -2,11 +2,13 @@ import React from 'react'
2
2
3
3
import Expansions from './Expansions'
4
4
import Supply from './Supply'
5
+ import Language from './Language'
5
6
6
7
const Settings = ( ) => (
7
8
< React . Fragment >
8
9
< Expansions />
9
10
< Supply />
11
+ < Language />
10
12
</ React . Fragment >
11
13
)
12
14
You can’t perform that action at this time.
0 commit comments