File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import DataTableRefreshButton from "@components/table/DataTableRefreshButton";
7
7
import { DataTableRowsPerPage } from "@components/table/DataTableRowsPerPage" ;
8
8
import GetStartedTest from "@components/ui/GetStartedTest" ;
9
9
import { ColumnDef , SortingState } from "@tanstack/react-table" ;
10
+ import { isLocalDev , isNetBirdHosted } from "@utils/netbird" ;
10
11
import dayjs from "dayjs" ;
11
12
import { ExternalLinkIcon , MailPlus , PlusCircle } from "lucide-react" ;
12
13
import { usePathname , useRouter } from "next/navigation" ;
@@ -176,14 +177,16 @@ export default function UsersTable({ users, isLoading }: Props) {
176
177
}
177
178
rightSide = { ( ) => (
178
179
< >
179
- { users && users ?. length > 0 && (
180
- < UserInviteModal >
181
- < Button variant = { "primary" } className = { "ml-auto" } >
182
- < MailPlus size = { 16 } />
183
- Invite User
184
- </ Button >
185
- </ UserInviteModal >
186
- ) }
180
+ { ( isLocalDev ( ) || isNetBirdHosted ( ) ) &&
181
+ users &&
182
+ users ?. length > 0 && (
183
+ < UserInviteModal >
184
+ < Button variant = { "primary" } className = { "ml-auto" } >
185
+ < MailPlus size = { 16 } />
186
+ Invite User
187
+ </ Button >
188
+ </ UserInviteModal >
189
+ ) }
187
190
</ >
188
191
) }
189
192
>
You can’t perform that action at this time.
0 commit comments