Skip to content

Commit

Permalink
Refactoring #62: remove references to local data
Browse files Browse the repository at this point in the history
  • Loading branch information
bodobraegger committed Apr 11, 2023
1 parent ce55e5d commit e971f53
Show file tree
Hide file tree
Showing 21 changed files with 1 addition and 11,616 deletions.
3 changes: 1 addition & 2 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import styled from '@emotion/styled';
import i18n from './../i18n';
import { Link, useNavigate, useLocation } from 'react-router-dom'
import { SectionT } from './Section';
import { getLocalSectionData } from '../helper/LocalDataHelper';
import client from "./../client";

const Button = styled.button`
Expand Down Expand Up @@ -33,7 +32,7 @@ function Footer(props: Props) {
return
}
client.get('/sections?_sort=sorting:ASC&_locale=' + lang).then((response: { data: any }) => {
const newSections = getLocalSectionData(lang)
const newSections = props.sections
if (currentSection) {
const otherSection = currentSection['localizations'].find((l: any) => { return l.locale === lang })
// @ts-ignore
Expand Down
22 changes: 0 additions & 22 deletions src/data/impressum-page/de.json

This file was deleted.

22 changes: 0 additions & 22 deletions src/data/impressum-page/fr.json

This file was deleted.

22 changes: 0 additions & 22 deletions src/data/impressum-page/it.json

This file was deleted.

Loading

0 comments on commit e971f53

Please sign in to comment.