Skip to content

Commit

Permalink
hack css handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Matias Kantele committed Dec 22, 2019
1 parent da24a8c commit 3788cdc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions components/Nav.js
Expand Up @@ -12,10 +12,10 @@ const Nav = () => {
<Link href="/">
<a>{t("invite")}</a>
</Link>
<Link href="info">
<Link href="/info">
<a>{t("info")}</a>
</Link>
<Link href="rsvp">
<Link href="/rsvp">
<a>{t("rsvp")}</a>
</Link>
</NavStyles>
Expand Down
1 change: 1 addition & 0 deletions pages/_app.js
@@ -1,6 +1,7 @@
import App from "next/app";
import { ThemeProvider, createGlobalStyle } from "styled-components";
import "../common/i18n";
import "../public/empty.css";

import Page from "../components/Page";

Expand Down
4 changes: 2 additions & 2 deletions pages/info.js
Expand Up @@ -17,7 +17,7 @@ const Info = () => {
const { t } = useTranslation();

return (
<div>
<>
<Section title={t("date")} image="date.svg">
<h2>{t("saturday")}</h2>
</Section>
Expand Down Expand Up @@ -59,7 +59,7 @@ const Info = () => {
<Section title={t("map")} image="map.svg">
<Map />
</Section>
</div>
</>
);
};

Expand Down
8 changes: 4 additions & 4 deletions pages/rsvp.js
Expand Up @@ -8,10 +8,10 @@ import {
} from "../components/styles/AttendanceStyles";
import Form from "../components/Form";

const RSVP = () => {
const Rsvp = () => {
const { t } = useTranslation();
const [selected, setSelected] = useState(false);
const [attending, setAttending] = useState("");
const [attending, setAttending] = useState(null);

return (
<>
Expand All @@ -37,9 +37,9 @@ const RSVP = () => {
<span>{t("decline")}</span>
</DeclineButton>
</Attendance>
<Form selected={selected} attending={attending} />
{selected ? <Form selected={selected} attending={attending} /> : null}
</>
);
};

export default RSVP;
export default Rsvp;
Empty file added public/empty.css
Empty file.

0 comments on commit 3788cdc

Please sign in to comment.