Center back button.

This commit is contained in:
Mike Cao 2020-09-28 22:12:48 -07:00
parent 11d8b19279
commit 45ac49af29
3 changed files with 22 additions and 18 deletions

View file

@ -42,16 +42,17 @@ export default function WebsiteDetails({ websiteId, token }) {
} = usePageQuery();
const BackButton = () => (
<Link
key="back-button"
className={styles.backButton}
href={router.pathname}
as={resolve({ view: undefined })}
icon={<Arrow />}
size="small"
>
<FormattedMessage id="button.back" defaultMessage="Back" />
</Link>
<div className={styles.backButton}>
<Link
key="back-button"
href={router.pathname}
as={resolve({ view: undefined })}
icon={<Arrow />}
size="small"
>
<FormattedMessage id="button.back" defaultMessage="Back" />
</Link>
</div>
);
const menuOptions = [

View file

@ -16,6 +16,9 @@
}
.backButton {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 16px;
}