mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Center back button.
This commit is contained in:
parent
11d8b19279
commit
45ac49af29
3 changed files with 22 additions and 18 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@
|
|||
}
|
||||
|
||||
.backButton {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue