mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-08 01:15:49 +02:00
<!-- Thanks for creating a PR! To make it easier for reviewers and everyone else to understand what your changes relate to, please add some relevant content to the headings below. Feel free to ignore or delete sections that you don't think are relevant. Thank you! ❤️ --> ## About the changes Update menu for Pro customers - show enterprise options with plan upgrade suggestion page. 
27 lines
907 B
TypeScript
27 lines
907 B
TypeScript
import { ADMIN } from 'component/providers/AccessProvider/permissions';
|
|
import { PermissionGuard } from 'component/common/PermissionGuard/PermissionGuard';
|
|
import { LoginHistoryTable } from './LoginHistoryTable/LoginHistoryTable';
|
|
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
|
import { EnterpriseFeatureUpgradePage } from 'component/common/EnterpriseFeatureUpgradePage/EnterpriseFeatureUpgradePage';
|
|
|
|
export const LoginHistory = () => {
|
|
const { isEnterprise } = useUiConfig();
|
|
|
|
if (!isEnterprise()) {
|
|
return (
|
|
<EnterpriseFeatureUpgradePage
|
|
title="Login history"
|
|
link="https://docs.getunleash.io/reference/login-history"
|
|
/>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<div>
|
|
<PermissionGuard permissions={ADMIN}>
|
|
<LoginHistoryTable />
|
|
</PermissionGuard>
|
|
</div>
|
|
);
|
|
};
|