Skip to content

Commit fbedebf

Browse files
refactor: remove AppConfig.showEventLocationExtraInfo as unnecessary
refs LIIKUNTA-444 (Noticed the lint warning) refs HH-296 (PR #235)
1 parent 70f19a5 commit fbedebf

6 files changed

Lines changed: 1 addition & 16 deletions

File tree

apps/events-helsinki/src/domain/app/AppConfig.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ class AppConfig {
105105
return value;
106106
}
107107

108-
static get showEventLocationExtraInfo() {
109-
return true;
110-
}
111-
112108
static get showSimilarEvents() {
113109
return Boolean(
114110
parseEnvValue(process.env.NEXT_PUBLIC_SHOW_SIMILAR_EVENTS, true)

apps/events-helsinki/src/domain/event/eventContent/EventContent.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
Link,
1919
HtmlToReact,
2020
} from 'react-helsinki-headless-cms';
21-
import AppConfig from '../../../domain/app/AppConfig';
2221

2322
import EventInfo from '../eventInfo/EventInfo';
2423
import styles from './eventContent.module.scss';
@@ -68,7 +67,7 @@ const EventContent: React.FC<Props> = ({
6867
{description}
6968
</HtmlToReact>
7069
</div>
71-
{AppConfig.showEventLocationExtraInfo && locationExtraInfo && (
70+
{locationExtraInfo && (
7271
<>
7372
<h2 className={styles.descriptionTitle}>
7473
{t('event:locationExtraInfo.title')}

apps/hobbies-helsinki/src/domain/app/AppConfig.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ class AppConfig {
105105
return value;
106106
}
107107

108-
static get showEventLocationExtraInfo() {
109-
return false;
110-
}
111-
112108
static get showSimilarEvents() {
113109
return Boolean(
114110
parseEnvValue(process.env.NEXT_PUBLIC_SHOW_SIMILAR_EVENTS, true)

apps/hobbies-helsinki/src/domain/event/eventContent/EventContent.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
Link,
1919
HtmlToReact,
2020
} from 'react-helsinki-headless-cms';
21-
import AppConfig from '../../../domain/app/AppConfig';
2221

2322
import EventInfo from '../eventInfo/EventInfo';
2423
import styles from './eventContent.module.scss';

apps/sports-helsinki/src/domain/app/AppConfig.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ class AppConfig {
105105
return value;
106106
}
107107

108-
static get showEventLocationExtraInfo() {
109-
return false;
110-
}
111-
112108
static get showSimilarEvents() {
113109
return Boolean(
114110
parseEnvValue(process.env.NEXT_PUBLIC_SHOW_SIMILAR_EVENTS, true)

apps/sports-helsinki/src/domain/event/eventContent/EventContent.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
Link,
1919
HtmlToReact,
2020
} from 'react-helsinki-headless-cms';
21-
import AppConfig from '../../../domain/app/AppConfig';
2221

2322
import EventInfo from '../eventInfo/EventInfo';
2423
import styles from './eventContent.module.scss';

0 commit comments

Comments
 (0)