poc - cal.com integration in onboarding flow (#12530)
This commit is contained in:
@ -43,6 +43,8 @@ const testCases = [
|
||||
{ loc: AppPath.InviteTeam, res: true },
|
||||
{ loc: AppPath.PlanRequired, res: true },
|
||||
{ loc: AppPath.PlanRequiredSuccess, res: true },
|
||||
{ loc: AppPath.BookCallDecision, res: true },
|
||||
{ loc: AppPath.BookCall, res: true },
|
||||
|
||||
{ loc: AppPath.Index, res: false },
|
||||
{ loc: AppPath.RecordIndexPage, res: false },
|
||||
|
||||
@ -19,7 +19,9 @@ export const useShowAuthModal = () => {
|
||||
isMatchingLocation(location, AppPath.SignInUp) ||
|
||||
isMatchingLocation(location, AppPath.CreateWorkspace) ||
|
||||
isMatchingLocation(location, AppPath.PlanRequired) ||
|
||||
isMatchingLocation(location, AppPath.PlanRequiredSuccess)
|
||||
isMatchingLocation(location, AppPath.PlanRequiredSuccess) ||
|
||||
isMatchingLocation(location, AppPath.BookCallDecision) ||
|
||||
isMatchingLocation(location, AppPath.BookCall)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -25,11 +25,14 @@ const StyledModalDiv = styled(motion.div)<{
|
||||
box-shadow: ${({ theme, modalVariant }) =>
|
||||
modalVariant === 'primary'
|
||||
? theme.boxShadow.superHeavy
|
||||
: theme.boxShadow.strong};
|
||||
background: ${({ theme }) => theme.background.primary};
|
||||
: modalVariant === 'transparent'
|
||||
? 'none'
|
||||
: theme.boxShadow.strong};
|
||||
background: ${({ theme, modalVariant }) =>
|
||||
modalVariant === 'transparent' ? 'transparent' : theme.background.primary};
|
||||
color: ${({ theme }) => theme.font.color.primary};
|
||||
border-radius: ${({ theme, isMobile }) => {
|
||||
if (isMobile) return `0`;
|
||||
border-radius: ${({ theme, isMobile, modalVariant }) => {
|
||||
if (isMobile || modalVariant === 'transparent') return `0`;
|
||||
return theme.border.radius.md;
|
||||
}};
|
||||
overflow-x: hidden;
|
||||
@ -123,7 +126,7 @@ const StyledBackDrop = styled(motion.div)<{
|
||||
}>`
|
||||
align-items: center;
|
||||
background: ${({ theme, modalVariant }) =>
|
||||
modalVariant === 'primary'
|
||||
modalVariant === 'primary' || modalVariant === 'transparent'
|
||||
? theme.background.overlayPrimary
|
||||
: modalVariant === 'secondary'
|
||||
? theme.background.overlaySecondary
|
||||
@ -177,7 +180,11 @@ const ModalFooter = ({ children, className }: ModalFooterProps) => (
|
||||
|
||||
export type ModalSize = 'small' | 'medium' | 'large' | 'extraLarge';
|
||||
export type ModalPadding = 'none' | 'small' | 'medium' | 'large';
|
||||
export type ModalVariants = 'primary' | 'secondary' | 'tertiary';
|
||||
export type ModalVariants =
|
||||
| 'primary'
|
||||
| 'secondary'
|
||||
| 'tertiary'
|
||||
| 'transparent';
|
||||
|
||||
export type ModalProps = React.PropsWithChildren & {
|
||||
modalId: string;
|
||||
|
||||
Reference in New Issue
Block a user