Skip to content

Commit 40933f4

Browse files
fix: change community detail view to ui tab routes (#171)
Thanks @datasalaryman 🙏
1 parent c7c737c commit 40933f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libs/web/community/feature/src/lib/user-community-detail-feature-admin.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { UiIcon } from '@pubkey-link/web-core-ui'
77
import { UserLogFeature } from '@pubkey-link/web-log-feature'
88
import { UserRoleFeature } from '@pubkey-link/web-role-feature'
99
import { UserSnapshotFeature } from '@pubkey-link/web-snapshot-feature'
10-
import { UiGridRoute, UiGridRoutes } from '@pubkey-ui/core'
10+
import { UiTabRoute, UiTabRoutes } from '@pubkey-ui/core'
1111
import { IconBrandDiscord, IconPhotoHeart } from '@tabler/icons-react'
1212
import { lazy } from 'react'
1313

@@ -27,7 +27,7 @@ export function UserCommunityDetailFeatureAdmin({
2727

2828
const hasSnapshots = hasFeature(AppFeature.CommunitySnapshots)
2929

30-
const routes: UiGridRoute[] = [
30+
const routes: UiTabRoute[] = [
3131
{
3232
path: 'dashboard',
3333
label: 'Dashboard',
@@ -77,7 +77,7 @@ export function UserCommunityDetailFeatureAdmin({
7777
element: <RouteSettings community={item} />,
7878
leftSection: <UiIcon type="settings" size={20} />,
7979
},
80-
].filter(Boolean) as UiGridRoute[]
80+
].filter(Boolean) as UiTabRoute[]
8181

82-
return <UiGridRoutes basePath={`/c/${communityId}`} routes={routes} />
82+
return <UiTabRoutes basePath={`/c/${communityId}`} tabs={routes} />
8383
}

0 commit comments

Comments
 (0)