mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-11 07:01:49 +02:00
✨ Update admin layout and pages (#976)
This commit is contained in:
parent
0ba7e9ce91
commit
a1bac0c986
81 changed files with 2053 additions and 1260 deletions
|
@ -44,9 +44,9 @@ export const IfSubscribed = ({ children }: React.PropsWithChildren) => {
|
|||
};
|
||||
|
||||
export const IfFreeUser = ({ children }: React.PropsWithChildren) => {
|
||||
const plan = usePlan();
|
||||
const subscription = useSubscription();
|
||||
|
||||
return plan === "free" ? <>{children}</> : null;
|
||||
return subscription?.active === false ? <>{children}</> : null;
|
||||
};
|
||||
|
||||
export const Plan = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue