Skip to content

Commit

Permalink
fix(lint): fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tkohr committed Jan 18, 2024
1 parent 26a8eb5 commit f46bc34
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions apps/datahub/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Component } from '@angular/core';
import { Component } from '@angular/core'

@Component({
selector: 'mel-dataplatform-root',
selector: 'mel-datahub-root',
templateUrl: './app.component.html',
styleUrl: './app.component.css',
})
export class AppComponent {
title = 'datahub';
title = 'datahub'
}
2 changes: 1 addition & 1 deletion apps/datahub/src/app/common/embedded.translate.loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import fr from 'node_modules/geonetwork-ui/translations/fr.json'
import { dropEmptyTranslations } from 'geonetwork-ui'

export class MelEmbeddedTranslateLoader implements TranslateLoader {
getTranslation(lang: string): Observable<any> {
getTranslation(lang: string): Observable<unknown> {
const langs = { en: { ...en, ...en_MEL }, fr: { ...fr, ...fr_MEL } }
const translations = langs[lang.substring(0, 2)]
return of(translations).pipe(map(dropEmptyTranslations))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Component, Input, OnInit } from '@angular/core'
import { Store } from '@ngrx/store'
import {
FIELDS_BRIEF,
FavoritesService,
RouterFacade,
SearchFacade,
SearchState,
Expand Down
2 changes: 1 addition & 1 deletion apps/datahub/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
/>
</head>
<body>
<mel-dataplatform-root></mel-dataplatform-root>
<mel-datahub-root></mel-datahub-root>
</body>
</html>

0 comments on commit f46bc34

Please sign in to comment.