Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SPP 2143 Learning Through Connecting
ltc_website
Commits
6077a59b
Commit
6077a59b
authored
Mar 19, 2020
by
amarcic
Browse files
cleaned code
parent
b3b7b732
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/index.js
View file @
6077a59b
...
...
@@ -19,7 +19,6 @@ const App = () => {
const
{
t
,
i18n
}
=
useTranslation
();
//const [labels, setLabels] = useState(INIT_LABELS);
const
[
settings
,
setSettings
]
=
useState
(
INIT_SETTINGS
);
//Apollo GraphQL related
...
...
@@ -46,22 +45,6 @@ const App = () => {
}
`
}).
then
(
result
=>
console
.
log
(
result
));
/*
const onSwitchLanguages = (setLang) => {
switch (setLang){
case 'en':
const newSettings = {...settings, language: "de"};
setSettings(newSettings);
break;
case 'de':
const newSettings1 = {...settings, language: "en"};
setSettings(newSettings1);
break;
default:
console.log("How did we even get here?");
}
};
*/
return
(
<
SettingsContext
.
Provider
value
=
{
settings
}
>
...
...
@@ -69,10 +52,9 @@ const App = () => {
<
PageHeader
/>
<
h1
>
{
t
(
'
EntangledAfrica1
'
)}:
{
t
(
'
EntangledAfrica2
'
)}
<
/h1
>
<
ApolloProvider
client
=
{
client
}
>
soon
you
will
find
a
map
with
nice
controls
here
soon
you
will
find
a
pretty
map
with
nice
controls
here
<
/ApolloProvider
>
<
/SettingsContext.Provider
>
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment