Skip to content

Commit 11bde5b

Browse files
committed
update message and approval button style
1 parent 499c554 commit 11bde5b

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/app/error/page.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default function ErrorPage() {
6262

6363
const getDescription = () => {
6464
if (isBlockedUser) {
65-
return "Your account has been blocked by an administrator. You cannot access the dashboard at this time.";
65+
return "Your access has been blocked by the NetBird account administrator, possibly due to new user approval requirements or security policies. Please contact your administrator to regain access.";
6666
}
6767
if (isPendingApproval) {
6868
return "Your account is pending approval from an administrator. Please wait for approval before accessing the dashboard.";
@@ -83,10 +83,11 @@ export default function ErrorPage() {
8383
</Paragraph>
8484

8585
{error && (
86-
<Paragraph className="text-center mt-4 block">
87-
Error: <span className="inline capitalize">{error.message}</span>
88-
{error.code && <span className="block text-sm text-nb-gray-400 mt-1">Code: {error.code}</span>}
89-
</Paragraph>
86+
<div className="bg-black border border-nb-gray-800 rounded-md p-4 mt-4 max-w-md font-mono">
87+
<div className="text-center text-sm text-green-400">
88+
<div>response_message: {error.message}</div>
89+
</div>
90+
</div>
9091
)}
9192

9293
<Paragraph className="text-center mt-2 text-sm">

src/modules/users/table-cells/UserActionCell.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ export default function UserActionCell({
101101
{isPendingApproval && canManageUsers && (
102102
<>
103103
<Button
104-
variant={"outline"}
105-
size={"sm"}
104+
variant={"secondary"}
105+
size={"xs"}
106+
className={"h-[32px]"}
106107
onClick={approveUser}
107108
data-cy={"approve-user"}
108109
>
109-
<CheckCircle size={16} />
110110
Approve
111111
</Button>
112112
<Button

0 commit comments

Comments
 (0)