Skip to content

Commit

Permalink
Add navigation buttons to exited room screen
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlong committed Feb 22, 2021
1 parent f180d53 commit 99f269a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/react-components/room/ExitedRoomScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";
import PropTypes from "prop-types";
import { defineMessages, FormattedMessage, useIntl } from "react-intl";
import { LoadingScreenLayout } from "../layout/LoadingScreenLayout";
import { Button } from "../input/Button";

export const ExitReason = {
exited: "exited",
Expand Down Expand Up @@ -104,6 +105,10 @@ export function ExitedRoomScreen({ reason, showTerms, termsUrl, logoSrc, showSou
/>
</p>
)}

<Button as="a" preset="accept" href="/">
<FormattedMessage id="exited-room-screen.home-button" defaultMessage="Back to Home" />
</Button>
</>
);
} else {
Expand Down Expand Up @@ -140,6 +145,10 @@ export function ExitedRoomScreen({ reason, showTerms, termsUrl, logoSrc, showSou
/>
</p>
)}

<Button as="a" preset="accept" href={window.location.href}>
<FormattedMessage id="exited-room-screen.refresh-page-button" defaultMessage="Refresh Page" />
</Button>
</>
);
}
Expand Down

0 comments on commit 99f269a

Please sign in to comment.