mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 03:29:02 +08:00
chore: remove the trial expiry banner on logout (#6212)
This commit is contained in:
parent
204728ff60
commit
0dec94a5c6
@ -211,6 +211,13 @@ function AppLayout(props: AppLayoutProps): JSX.Element {
|
|||||||
}
|
}
|
||||||
}, [licenseData, isFetching]);
|
}, [licenseData, isFetching]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
// after logging out hide the trial expiry banner
|
||||||
|
if (!isLoggedIn) {
|
||||||
|
setShowTrialExpiryBanner(false);
|
||||||
|
}
|
||||||
|
}, [isLoggedIn]);
|
||||||
|
|
||||||
const handleUpgrade = (): void => {
|
const handleUpgrade = (): void => {
|
||||||
if (role === 'ADMIN') {
|
if (role === 'ADMIN') {
|
||||||
history.push(ROUTES.BILLING);
|
history.push(ROUTES.BILLING);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user