Skip to content

Commit

Permalink
Fix typing issues in Footer
Browse files Browse the repository at this point in the history
  • Loading branch information
iyannsch committed Aug 9, 2024
1 parent 9323069 commit 3362833
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions node/landing-page/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,7 @@ function App(): JSX.Element {
title={config.infoTitle}
/>
)}
<Footer
appDefinition={config.appDefinition}
additionalApps={config.additionalApps !== undefined ? config.additionalApps : []}
/>
<Footer selectedAppDefinition={selectedAppDefinition} />
</div>
</div>
);
Expand Down
6 changes: 2 additions & 4 deletions node/landing-page/src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { AppDefinition } from '@eclipse-theiacloud/common';

interface FooterProps {
selectedAppDefinition: AppDefinition;
selectedAppDefinition: string;
}

export const Footer = ({ selectedAppDefinition }: FooterProps): JSX.Element => (
<div className='App__footer'>
<p>
<label htmlFor='selectapp'> {selectedAppDefinition.appName} </label>
<label htmlFor='selectapp'> {selectedAppDefinition} </label>
</p>
<p></p>
<p>
Expand Down

0 comments on commit 3362833

Please sign in to comment.