Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Zvone Gazvoda committed Mar 23, 2021
1 parent b01bebf commit 45ec6a6
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module.exports = {
resolve: `gatsby-plugin-react-i18next`,
options: {
localeJsonSourceName: `locale`,
languages: [`sl`, `en`, `de`],
languages: [`sl`],
defaultLanguage: `sl`,
redirect: false,
siteUrl: `https://kumuluz-api-netlify.app/`,
Expand Down
3 changes: 1 addition & 2 deletions src/components/content/case-studies/case-studies.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { CarouselProvider, Slider, Slide, ButtonBack, ButtonNext } from "pure-re
import "pure-react-carousel/dist/react-carousel.es.css"
import SliderButton from "../../../../static/images/slider-navi.png"
import SliderButtonRotated from "../../../../static/images/slider-navi-rotated.png"
import Content from "../case-study/study"

const CaseStudiesComponent = () => {

Expand Down Expand Up @@ -39,7 +38,7 @@ const CaseStudiesComponent = () => {
<Slider>
{
usecases.map((detail, index) => {
return (<Slide index={index}><SlideComponent use={detail} index={index}/> </Slide>)
return (<Slide key={index} index={index}><SlideComponent use={detail} index={index}/> </Slide>)
})
}
</Slider>
Expand Down
1 change: 0 additions & 1 deletion src/components/content/case-study/study.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from "react"
import style from "./studies.scss"

const StudyComponent = (props) => {

Expand Down
6 changes: 3 additions & 3 deletions src/components/header/navbar/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ const NavbarComponent = () => {
const { t } = useTranslation();

const navbarLinks = t('navbar.links', { returnObjects: true }).map((link, index) =>
<a href={link.link} key={index} target="_blank" rel="noreferrer noopener">
<a href={link.link} key={index} target="_blank" rel="noreferrer">
<p>{link.name}</p>
</a>
);


let setSelected = (e) => {
changeLanguage(e.target.getAttribute('value'));
changeLanguage(e.target.getAttribute('value'));
}


Expand Down Expand Up @@ -52,7 +52,7 @@ const NavbarComponent = () => {
</p>
<div className="dropdown-content">
{languages.map((lng) => (
<p key={lng} onClick={setSelected} value={lng}>
<p key={lng} onClick={setSelected} value={lng} role="presentation">
{t("navbar.language."+lng +"-full")}
</p>
))}
Expand Down
6 changes: 3 additions & 3 deletions static/locales/de/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
},
{
"name": "Produkti",
"link": "https://kumuluz.com/digital-platform"
"link": "https://kumuluz.com/digital-platform/"
},
{
"name": "Tehnologije",
"link": "https://sunesis.si/technologies"
"link": "https://sunesis.si/technologies/"
},
{
"name": "Stranke",
"link": "https://kumuluz.com/partners"
"link": "https://kumuluz.com/partners/"
},
{
"name": "O nas",
Expand Down
6 changes: 3 additions & 3 deletions static/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
},
{
"name": "Produkti",
"link": "https://kumuluz.com/digital-platform"
"link": "https://kumuluz.com/digital-platform/"
},
{
"name": "Tehnologije",
"link": "https://sunesis.si/technologies"
"link": "https://sunesis.si/technologies/"
},
{
"name": "Stranke",
"link": "https://kumuluz.com/partners"
"link": "https://kumuluz.com/partners/"
},
{
"name": "O nas",
Expand Down
6 changes: 3 additions & 3 deletions static/locales/sl/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
},
{
"name": "Produkti",
"link": "https://kumuluz.com/digital-platform"
"link": "https://kumuluz.com/digital-platform/"
},
{
"name": "Tehnologije",
"link": "https://sunesis.si/technologies"
"link": "https://sunesis.si/technologies/"
},
{
"name": "Stranke",
"link": "https://kumuluz.com/partners"
"link": "https://kumuluz.com/partners/"
},
{
"name": "O nas",
Expand Down

0 comments on commit 45ec6a6

Please sign in to comment.