WIP pl-api migration

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-08-18 15:35:52 +02:00
parent 6addd190f5
commit 5c2dbbd1d6
43 changed files with 72 additions and 69 deletions

View File

@ -15,7 +15,7 @@ import { useAppDispatch, useAppSelector, useFeatures, useInstance } from 'soapbo
import { makeGetOtherAccounts } from 'soapbox/selectors';
import type { List as ImmutableList } from 'immutable';
import type { Account as AccountEntity } from 'soapbox/types/entities';
import type { Account as AccountEntity } from 'soapbox/normalizers';
const messages = defineMessages({
profile: { id: 'account.profile', defaultMessage: 'Profile' },
@ -336,7 +336,7 @@ const SidebarMenu: React.FC = (): JSX.Element | null => {
/>
)}
{account.staff && (
{(account.is_admin || account.is_moderator) && (
<SidebarLink
to='/dashboard'
icon={require('@tabler/icons/outline/dashboard.svg')}