Skip to content

Commit

Permalink
chore: stylize warning toasts
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Dec 24, 2024
1 parent f350d16 commit 9855093
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion components/ui/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const CardDescription = React.forwardRef<
>(({ className, ...props }, ref) => (
<Text
ref={ref}
className={cn("mt-1 text-sm text-muted-foreground", className)}
className={cn("mt-1 text-muted-foreground", className)}
{...props}
/>
));
Expand Down
12 changes: 7 additions & 5 deletions pages/settings/wallets/EditWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@ export function EditWallet() {
const selectedWalletId = useAppStore((store) => store.selectedWalletId);
const wallets = useAppStore((store) => store.wallets);
return (
<View className="flex-1 flex flex-col p-3 gap-3">
<View className="flex-1 flex flex-col p-4 gap-4">
<Screen title="Edit Wallet" />
{/* TODO: Do not allow notifications to be toggled without notifications capability */}
<Card>
<Card className="bg-orange-50 border-orange-100 my-2">
<CardContent className="flex flex-row items-center gap-4">
<TriangleAlert className="text-muted-foreground" />
<TriangleAlert className="text-orange-700" />
<View className="flex flex-1 flex-col">
<CardTitle>This wallet might not work as expected</CardTitle>
<CardDescription>
<CardTitle className="text-orange-700">
This wallet might not work as expected
</CardTitle>
<CardDescription className="text-orange-700">
Missing capabilities:&nbsp;
{REQUIRED_CAPABILITIES.filter(
(capability) =>
Expand Down
10 changes: 6 additions & 4 deletions pages/settings/wallets/SetupWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,14 @@ export function SetupWallet() {
!REQUIRED_CAPABILITIES.every((capability) =>
capabilities.includes(capability),
) && (
<Card className="w-full mb-5">
<Card className="w-full mb-5 bg-orange-50 border-orange-100">
<CardContent className="flex flex-row items-center gap-4">
<TriangleAlert className="text-muted-foreground" />
<TriangleAlert className="text-orange-700" />
<View className="flex flex-1 flex-col">
<CardTitle>Alby Go might not work as expected</CardTitle>
<CardDescription>
<CardTitle className="text-orange-700">
Alby Go might not work as expected
</CardTitle>
<CardDescription className="text-orange-700">
Missing capabilities:&nbsp;
{REQUIRED_CAPABILITIES.filter(
(capability) => !capabilities.includes(capability),
Expand Down

0 comments on commit 9855093

Please sign in to comment.