mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
rotate arrows in rtl
This commit is contained in:
parent
b39ef68372
commit
aba523cbee
3 changed files with 10 additions and 4 deletions
|
|
@ -6,10 +6,12 @@ import useMessages from 'hooks/useMessages';
|
|||
import useUser from 'hooks/useUser';
|
||||
import { ROLES } from 'lib/constants';
|
||||
import SettingsTable from 'components/common/SettingsTable';
|
||||
import useLocale from 'hooks/useLocale';
|
||||
|
||||
export default function TeamsTable({ data = [], onDelete }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { user } = useUser();
|
||||
const { dir } = useLocale();
|
||||
|
||||
const columns = [
|
||||
{ name: 'name', label: formatMessage(labels.name) },
|
||||
|
|
@ -64,7 +66,7 @@ export default function TeamsTable({ data = [], onDelete }) {
|
|||
{!showDelete && (
|
||||
<ModalTrigger>
|
||||
<Button>
|
||||
<Icon>
|
||||
<Icon rotate={dir === 'rtl' ? 180 : 0}>
|
||||
<Icons.ArrowRight />
|
||||
</Icon>
|
||||
<Text>{formatMessage(labels.leave)}</Text>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue