Skip to content

Commit

Permalink
hide activity logs from A users (#4093)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcampbell2 authored Nov 1, 2022
1 parent 5225f17 commit 58d8b91
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions frontend/src/admin/AdminPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import { UserList } from './UserList'

import { ErrorFallbackMessage } from '../components/ErrorFallbackMessage'
import { AuditLogTable } from './AuditLogTable'
import { ABTestingWrapper } from '../app/ABTestWrapper'
import { ABTestVariant } from '../app/ABTestVariant'

export function AdminPanel({ activeMenu, orgSlug, permission, orgId }) {
return (
Expand All @@ -28,9 +30,13 @@ export function AdminPanel({ activeMenu, orgSlug, permission, orgId }) {
<Tab borderTopWidth="4px">
<Trans>Users</Trans>
</Tab>
<Tab borderTopWidth="4px">
<Trans>Activity</Trans>
</Tab>
<ABTestingWrapper insiderVariantName="B">
<ABTestVariant name="B">
<Tab borderTopWidth="4px">
<Trans>Activity</Trans>
</Tab>
</ABTestVariant>
</ABTestingWrapper>
</TabList>

<TabPanels>
Expand All @@ -54,11 +60,15 @@ export function AdminPanel({ activeMenu, orgSlug, permission, orgId }) {
/>
</ErrorBoundary>
</TabPanel>
<TabPanel>
<ErrorBoundary FallbackComponent={ErrorFallbackMessage}>
<AuditLogTable orgId={orgId} />
</ErrorBoundary>
</TabPanel>
<ABTestingWrapper insiderVariantName="B">
<ABTestVariant name="B">
<TabPanel>
<ErrorBoundary FallbackComponent={ErrorFallbackMessage}>
<AuditLogTable orgId={orgId} />
</ErrorBoundary>
</TabPanel>
</ABTestVariant>
</ABTestingWrapper>
</TabPanels>
</Tabs>
</Stack>
Expand Down

0 comments on commit 58d8b91

Please sign in to comment.