Skip to content

Commit

Permalink
Update footer text
Browse files Browse the repository at this point in the history
  • Loading branch information
elias-garcia committed Apr 3, 2020
1 parent 2956e8b commit 48720a0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
import React from "react";
import { Typography } from "@material-ui/core";
import { Typography, Link } from "@material-ui/core";

import useStyles from "./footer.styles";

export interface FooterProps {
readonly appTitle: string;
}

const Footer: React.FC<FooterProps> = ({ appTitle }) => {
const Footer: React.FC = () => {
const classes = useStyles();

return (
<footer className={classes.root}>
<Typography>{appTitle} by Elías García</Typography>
<Typography>
An&nbsp;
<Link
href="https://github.com/elias-garcia/covid-19-spain"
target="_blank"
>
open source project
</Link>
&nbsp;by&nbsp;
<Link href="https://eliasgarcia.dev" target="_blank">
Elías García
</Link>
</Typography>
</footer>
);
};
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/core/layout/layout.view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import React from "react";
import HeaderContainer from "./components/header/header.container";
import NavigationMenuContainer from "./components/navigation-menu/navigation-menu-container";
import MainContent from "./components/main-content/main-content.view";
import FooterContainer from "./components/footer/footer.container";
import Footer from "./components/footer/footer.view";

const Layout: React.FC = ({ children }) => {
return (
<>
<HeaderContainer />
<NavigationMenuContainer />
<MainContent>{children}</MainContent>
<FooterContainer />
<Footer />
</>
);
};
Expand Down

0 comments on commit 48720a0

Please sign in to comment.