Skip to content

Commit 294e481

Browse files
committed
ui
1 parent e2d278f commit 294e481

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

apps/sim/app/invite/[id]/invite.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

33
import { useEffect, useState } from 'react'
4-
import { BotIcon, CheckCircle, Mail, Users } from 'lucide-react'
4+
import { AlertCircle, CheckCircle2, Mail, UserPlus, Users2 } from 'lucide-react'
55
import Image from 'next/image'
66
import { useParams, useRouter, useSearchParams } from 'next/navigation'
77
import { Button } from '@/components/ui/button'
@@ -189,8 +189,8 @@ export default function Invite() {
189189
</div>
190190

191191
<div className='flex w-full max-w-md flex-col items-center text-center'>
192-
<div className='mb-6 rounded-full bg-blue-100 p-3 dark:bg-blue-900/20'>
193-
<Mail className='h-8 w-8 text-blue-600 dark:text-blue-500' />
192+
<div className='mb-6 rounded-full bg-blue-50 p-3 dark:bg-blue-950/20'>
193+
<UserPlus className='h-8 w-8 text-blue-500 dark:text-blue-400' />
194194
</div>
195195

196196
<h1 className='mb-2 font-semibold text-black text-xl dark:text-white'>
@@ -304,8 +304,8 @@ export default function Invite() {
304304
/>
305305
</div>
306306
<div className='flex w-full max-w-md flex-col items-center text-center'>
307-
<div className='mb-6 rounded-full bg-red-100 p-3 dark:bg-red-900/20'>
308-
<BotIcon className='h-8 w-8 text-red-600 dark:text-red-500' />
307+
<div className='mb-6 rounded-full bg-red-50 p-3 dark:bg-red-950/20'>
308+
<AlertCircle className='h-8 w-8 text-red-500 dark:text-red-400' />
309309
</div>
310310
<h1 className='mb-2 font-semibold text-black text-xl dark:text-white'>
311311
Invitation Error
@@ -346,8 +346,8 @@ export default function Invite() {
346346
/>
347347
</div>
348348
<div className='flex w-full max-w-md flex-col items-center text-center'>
349-
<div className='mb-6 rounded-full bg-green-100 p-3 dark:bg-green-900/20'>
350-
<CheckCircle className='h-8 w-8 text-green-600 dark:text-green-500' />
349+
<div className='mb-6 rounded-full bg-green-50 p-3 dark:bg-green-950/20'>
350+
<CheckCircle2 className='h-8 w-8 text-green-500 dark:text-green-400' />
351351
</div>
352352
<h1 className='mb-2 font-semibold text-black text-xl dark:text-white'>Welcome!</h1>
353353
<p className='mb-6 text-gray-600 text-sm leading-relaxed dark:text-gray-300'>
@@ -389,11 +389,11 @@ export default function Invite() {
389389
</div>
390390

391391
<div className='flex w-full max-w-md flex-col items-center text-center'>
392-
<div className='mb-6 rounded-full bg-blue-100 p-3 dark:bg-blue-900/20'>
392+
<div className='mb-6 rounded-full bg-blue-50 p-3 dark:bg-blue-950/20'>
393393
{invitationType === 'organization' ? (
394-
<Users className='h-8 w-8 text-blue-600 dark:text-blue-500' />
394+
<Users2 className='h-8 w-8 text-blue-500 dark:text-blue-400' />
395395
) : (
396-
<Mail className='h-8 w-8 text-blue-600 dark:text-blue-500' />
396+
<Mail className='h-8 w-8 text-blue-500 dark:text-blue-400' />
397397
)}
398398
</div>
399399

apps/sim/app/invite/invite-error/invite-error.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

33
import { useEffect, useState } from 'react'
4-
import { AlertTriangle, Mail, RefreshCw } from 'lucide-react'
4+
import { Mail, RotateCcw, ShieldX } from 'lucide-react'
55
import Image from 'next/image'
66
import Link from 'next/link'
77
import { useSearchParams } from 'next/navigation'
@@ -59,6 +59,7 @@ export default function InviteError() {
5959
const displayMessage = errorMessage || 'Loading error details...'
6060

6161
const isEmailVerificationError = reason === 'email-not-verified'
62+
6263
const isExpiredError = reason === 'expired'
6364

6465
return (
@@ -76,8 +77,8 @@ export default function InviteError() {
7677
</div>
7778

7879
<div className='flex w-full max-w-md flex-col items-center text-center'>
79-
<div className='mb-6 rounded-full bg-amber-100 p-3 dark:bg-amber-900/20'>
80-
<AlertTriangle className='h-8 w-8 text-amber-600 dark:text-amber-500' />
80+
<div className='mb-6 rounded-full bg-red-50 p-3 dark:bg-red-950/20'>
81+
<ShieldX className='h-8 w-8 text-red-500 dark:text-red-400' />
8182
</div>
8283

8384
<h1 className='mb-2 font-semibold text-black text-xl dark:text-white'>Invitation Error</h1>
@@ -108,7 +109,7 @@ export default function InviteError() {
108109
asChild
109110
>
110111
<Link href='/'>
111-
<RefreshCw className='mr-2 h-4 w-4' />
112+
<RotateCcw className='mr-2 h-4 w-4' />
112113
Request New Invitation
113114
</Link>
114115
</Button>

apps/sim/lib/security/csp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const buildTimeCSPDirectives: CSPDirectives = {
4343
'style-src': ["'self'", "'unsafe-inline'", 'https://fonts.googleapis.com'],
4444

4545
'img-src': [
46+
'https://agentics.epiqglobal.com',
4647
"'self'",
4748
'data:',
4849
'blob:',

0 commit comments

Comments
 (0)