mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
Refactored forms and pages.
This commit is contained in:
parent
1325abe31d
commit
6253d55790
57 changed files with 209 additions and 208 deletions
|
|
@ -1,16 +1,14 @@
|
|||
import classNames from 'classnames';
|
||||
import Link from 'next/link';
|
||||
import { Icon, Icons, Text } from 'react-basics';
|
||||
import styles from './LinkButton.module.css';
|
||||
import { useLocale } from 'components/hooks';
|
||||
import styles from './LinkButton.module.css';
|
||||
|
||||
export function LinkButton({ href, icon, className, children }) {
|
||||
export function LinkButton({ href, className, children }) {
|
||||
const { dir } = useLocale();
|
||||
|
||||
return (
|
||||
<Link className={classNames(styles.button, className)} href={href}>
|
||||
<Icon rotate={dir === 'rtl' ? 0 : 180}>{icon || <Icons.ArrowRight />}</Icon>
|
||||
<Text>{children}</Text>
|
||||
<Link className={classNames(styles.button, className)} href={href} dir={dir}>
|
||||
{children}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--base50);
|
||||
position: relative;
|
||||
max-width: 1320px;
|
||||
min-height: calc(100vh - 60px);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue