Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/sim/app/(auth)/components/auth-nav-prompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function AuthNavPrompt({ prompt, href, linkLabel, onNavigate }: AuthNavPr
return (
<div className='flex items-center justify-center gap-1 text-sm'>
{prompt && <span className='text-[var(--text-muted)]'>{prompt}</span>}
<ChipLink href={href} onClick={onNavigate} className='border border-[var(--border-1)]'>
<ChipLink href={href} onClick={onNavigate} variant='outline'>
{linkLabel}
</ChipLink>
</div>
Expand Down
11 changes: 7 additions & 4 deletions apps/sim/app/(auth)/components/social-login-buttons.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import { type ReactNode, useState } from 'react'
import { Chip, cn } from '@sim/emcn'
import { Chip } from '@sim/emcn'
import { createLogger } from '@sim/logger'
import { getErrorMessage } from '@sim/utils/errors'
import { GithubIcon, GoogleIcon, MicrosoftIcon } from '@/components/icons'
Expand Down Expand Up @@ -73,7 +73,8 @@ export function SocialLoginButtons({
<Chip
fullWidth
leftIcon={GithubIcon}
className={cn(AUTH_BUTTON_CLASS, 'border border-[var(--border-1)]')}
variant='outline'
className={AUTH_BUTTON_CLASS}
disabled={!githubAvailable || isGithubLoading}
onClick={signInWithGithub}
>
Expand All @@ -85,7 +86,8 @@ export function SocialLoginButtons({
<Chip
fullWidth
leftIcon={GoogleIcon}
className={cn(AUTH_BUTTON_CLASS, 'border border-[var(--border-1)]')}
variant='outline'
className={AUTH_BUTTON_CLASS}
disabled={!googleAvailable || isGoogleLoading}
onClick={signInWithGoogle}
>
Expand All @@ -97,7 +99,8 @@ export function SocialLoginButtons({
<Chip
fullWidth
leftIcon={MicrosoftIcon}
className={cn(AUTH_BUTTON_CLASS, 'border border-[var(--border-1)]')}
variant='outline'
className={AUTH_BUTTON_CLASS}
disabled={!microsoftAvailable || isMicrosoftLoading}
onClick={signInWithMicrosoft}
>
Expand Down
8 changes: 2 additions & 6 deletions apps/sim/app/(auth)/components/sso-login-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,10 @@ export function SSOLoginButton({

return (
<Chip
variant={variant === 'primary' ? 'primary' : undefined}
variant={variant}
fullWidth
onClick={handleSSOClick}
className={cn(
AUTH_BUTTON_CLASS,
variant === 'outline' && 'border border-[var(--border-1)]',
className
)}
className={cn(AUTH_BUTTON_CLASS, className)}
>
Sign in with SSO
</Chip>
Expand Down
5 changes: 3 additions & 2 deletions apps/sim/app/invite/components/status-card.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client'
import { Chip, cn, Loader } from '@sim/emcn'
import { Chip, Loader } from '@sim/emcn'
import { AuthSubmitButton } from '@/app/(auth)/components'
import { AUTH_BUTTON_CLASS } from '@/app/(auth)/components/constants'
import { InviteHeading } from '@/app/invite/components/invite-heading'
Expand Down Expand Up @@ -80,7 +80,8 @@ export function InviteStatusCard({
fullWidth
onClick={action.onClick}
disabled={action.disabled || action.loading}
className={cn(AUTH_BUTTON_CLASS, 'border border-[var(--border)]')}
variant='outline'
className={AUTH_BUTTON_CLASS}
>
{action.loading ? (
<span className='flex items-center gap-2'>
Expand Down
11 changes: 7 additions & 4 deletions apps/sim/app/unsubscribe/unsubscribe.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import { Suspense } from 'react'
import { Chip, cn, Loader } from '@sim/emcn'
import { Chip, Loader } from '@sim/emcn'
import { getErrorMessage } from '@sim/utils/errors'
import { useSearchParams } from 'next/navigation'
import type { UnsubscribeType } from '@/lib/api/contracts/user'
Expand Down Expand Up @@ -139,7 +139,8 @@ function UnsubscribeContent() {
isAlreadyUnsubscribedFromAll ||
data?.currentPreferences.unsubscribeMarketing
}
className={cn(AUTH_BUTTON_CLASS, 'border border-[var(--border-1)]')}
variant='outline'
className={AUTH_BUTTON_CLASS}
>
{data?.currentPreferences.unsubscribeMarketing
? 'Unsubscribed from Marketing'
Expand All @@ -154,7 +155,8 @@ function UnsubscribeContent() {
isAlreadyUnsubscribedFromAll ||
data?.currentPreferences.unsubscribeUpdates
}
className={cn(AUTH_BUTTON_CLASS, 'border border-[var(--border-1)]')}
variant='outline'
className={AUTH_BUTTON_CLASS}
>
{data?.currentPreferences.unsubscribeUpdates
? 'Unsubscribed from Updates'
Expand All @@ -169,7 +171,8 @@ function UnsubscribeContent() {
isAlreadyUnsubscribedFromAll ||
data?.currentPreferences.unsubscribeNotifications
}
className={cn(AUTH_BUTTON_CLASS, 'border border-[var(--border-1)]')}
variant='outline'
className={AUTH_BUTTON_CLASS}
>
{data?.currentPreferences.unsubscribeNotifications
? 'Unsubscribed from Notifications'
Expand Down
Loading