feat(cloud): enable free trial (#236)
* feat(cloud): add free trial * fix: center workspace name icon when collapsed * feat: add 14 day free trial notice to pricing page * feat: hide upgrade button when on active subscription * chore: translations
This commit is contained in:
@@ -59,7 +59,18 @@ export const ModalProvider: React.FC<Props> = ({ children }) => {
|
||||
entityLabel,
|
||||
closeOnClickOutside,
|
||||
};
|
||||
setModalStack((prev) => [...prev, newModal]);
|
||||
setModalStack((prev) => {
|
||||
const last = prev[prev.length - 1];
|
||||
if (
|
||||
last &&
|
||||
last.contentType === newModal.contentType &&
|
||||
last.entityId === newModal.entityId &&
|
||||
last.entityLabel === newModal.entityLabel
|
||||
) {
|
||||
return prev; // prevent stacking duplicate modal on top
|
||||
}
|
||||
return [...prev, newModal];
|
||||
});
|
||||
},
|
||||
[],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user