Browse Source

chore(web): remove new badges from bulk send and webhook sections

pull/56/head
isra el 1 year ago
parent
commit
7552fc385b
  1. 10
      web/app/(app)/dashboard/(components)/message-history.tsx
  2. 7
      web/app/(app)/dashboard/(components)/messaging.tsx
  3. 7
      web/app/(app)/dashboard/(components)/webhooks/webhooks-section.tsx

10
web/app/(app)/dashboard/(components)/message-history.tsx

@ -33,16 +33,6 @@ import { Input } from '@/components/ui/input'
import { Textarea } from '@/components/ui/textarea'
import { Badge } from "@/components/ui/badge"
// You might need to add this CSS to your global styles or component
const styles = {
deviceSelectorContainer: `
mb-6 mt-4 p-4
bg-gradient-to-r from-indigo-50/50 to-purple-50/50
rounded-xl shadow-sm
border border-indigo-100
`
}
function ReplyDialog({ sms, onClose }: { sms: any; onClose?: () => void }) {
const [open, setOpen] = useState(false)

7
web/app/(app)/dashboard/(components)/messaging.tsx

@ -6,7 +6,6 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'
import SendSms from './send-sms'
import MessageHistory from './message-history'
import BulkSMSSend from './bulk-sms-send'
import { Badge } from '@/components/ui/badge'
export default function Messaging() {
const [currentTab, setCurrentTab] = useState('send')
@ -28,12 +27,6 @@ export default function Messaging() {
</TabsTrigger>
<TabsTrigger value='bulk-send' className='flex-1'>
Bulk Send{' '}
<Badge
variant='outline'
className='ml-2 bg-yellow-100 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-200'
>
new
</Badge>
</TabsTrigger>
<TabsTrigger value='history' className='flex-1'>
History

7
web/app/(app)/dashboard/(components)/webhooks/webhooks-section.tsx

@ -18,7 +18,6 @@ import {
TooltipProvider,
TooltipTrigger,
} from '@/components/ui/tooltip'
import { Badge } from '@/components/ui/badge'
function WebhookCardSkeleton() {
return (
@ -91,12 +90,6 @@ export default function WebhooksSection() {
<h1 className='text-xl sm:text-2xl font-bold flex flex-wrap items-center gap-2'>
<Webhook className='h-5 w-5 sm:h-6 sm:w-6' />
Webhooks
<Badge
variant='outline'
className='text-xs font-medium px-2 py-1 rounded-full bg-yellow-100 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-200'
>
new
</Badge>
</h1>
<p className='text-sm text-muted-foreground mt-2'>
Manage webhook notifications for your SMS events

Loading…
Cancel
Save