mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
More refactoring and clean-up.
This commit is contained in:
parent
f062cdbed2
commit
c815e7cd51
16 changed files with 101 additions and 134 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { Row, Column, Menu, Item, Icon, Button } from 'react-basics';
|
||||
import { useIntl } from 'react-intl';
|
||||
import Link from 'next/link';
|
||||
import BrowsersTable from 'components/metrics/BrowsersTable';
|
||||
import CountriesTable from 'components/metrics/CountriesTable';
|
||||
|
|
@ -13,7 +14,7 @@ import EventsTable from 'components/metrics/EventsTable';
|
|||
import usePageQuery from 'hooks/usePageQuery';
|
||||
import Icons from 'components/icons';
|
||||
import { labels } from 'components/messages';
|
||||
import { useIntl } from 'react-intl';
|
||||
import styles from './WebsiteMenuView.module.css';
|
||||
|
||||
const views = {
|
||||
url: PagesTable,
|
||||
|
|
@ -81,8 +82,8 @@ export default function WebsiteMenuView({ websiteId, websiteDomain }) {
|
|||
const DetailsComponent = views[view];
|
||||
|
||||
return (
|
||||
<Row>
|
||||
<Column>
|
||||
<Row className={styles.row}>
|
||||
<Column defaultSize={3} className={styles.col}>
|
||||
<Button>
|
||||
<Icon rotate={180}>
|
||||
<Icons.ArrowRight />
|
||||
|
|
@ -91,15 +92,15 @@ export default function WebsiteMenuView({ websiteId, websiteDomain }) {
|
|||
</Button>
|
||||
<Menu items={items}>
|
||||
{({ value, label }) => (
|
||||
<Link href={resolve()}>
|
||||
<a>
|
||||
<Item key={value}>{label}</Item>
|
||||
</a>
|
||||
</Link>
|
||||
<Item key={value}>
|
||||
<Link href={resolve()}>
|
||||
<a>{label}</a>
|
||||
</Link>
|
||||
</Item>
|
||||
)}
|
||||
</Menu>
|
||||
</Column>
|
||||
<Column>
|
||||
<Column defaultSize={9} className={styles.col}>
|
||||
<DetailsComponent
|
||||
websiteId={websiteId}
|
||||
websiteDomain={websiteDomain}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue