Skip to content

Commit

Permalink
Merge pull request #3945 from mozilla/feature/add-closed-room-link
Browse files Browse the repository at this point in the history
Add navigation buttons to exited room screen
  • Loading branch information
robertlong authored Feb 22, 2021
2 parents f180d53 + 99f269a commit b0221f1
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 b0221f1

Please sign in to comment.