Skip to content

Commit c3c7df1

Browse files
fix: some texts, change icon
1 parent b15e214 commit c3c7df1

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/app/dashboard/(active)/telegram/grants/delete-grant.tsx

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

33
import { useMutation, useQueryClient } from "@tanstack/react-query"
4-
import { Trash2, Trash2Icon } from "lucide-react"
4+
import { OctagonX, Square, Trash2, Trash2Icon } from "lucide-react"
55
import { useState } from "react"
66
import { toast } from "sonner"
77
import {
@@ -55,15 +55,15 @@ export function DeleteGrant({ userId }: { userId: number }) {
5555
<AlertDialogTrigger
5656
render={
5757
<Button variant="destructive">
58-
<Trash2 />
59-
Delete
58+
<OctagonX />
59+
Interrupt
6060
</Button>
6161
}
6262
></AlertDialogTrigger>
6363
<AlertDialogContent size="sm">
6464
<AlertDialogHeader>
6565
<AlertDialogMedia className="bg-destructive/10 text-destructive dark:bg-destructive/20 dark:text-destructive">
66-
<Trash2Icon />
66+
<OctagonX />
6767
</AlertDialogMedia>
6868
<AlertDialogTitle>Interrupt Grant</AlertDialogTitle>
6969
<AlertDialogDescription>Are you sure you want to interrupt the grant?</AlertDialogDescription>

src/app/dashboard/(active)/telegram/grants/grant-list.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export function GrantList() {
2323
{data?.grants?.map((r) => (
2424
<GrantRow row={r} key={r.grant.id} />
2525
))}
26+
{data?.grants.length === 0 && <div className="w-full text-center py-2 italic">There are no ongoing grants</div>}
2627
</div>
2728
)
2829
}

src/app/dashboard/(active)/telegram/grants/new-grant.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export function NewGrant() {
109109
<DialogContent className="sm:max-w-xl">
110110
<DialogHeader>
111111
<DialogTitle>New Grant</DialogTitle>
112-
<DialogDescription>Make the user admin in a group.</DialogDescription>
112+
<DialogDescription>Create a grant to allow user to skip the auto moderation stack.</DialogDescription>
113113
</DialogHeader>
114114

115115
<UserSelect onUser={(user) => setUser(user)} onReset={() => setUser(null)} />

0 commit comments

Comments
 (0)