Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/common/NetworkError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export function NetworkError({ onRetry, message = "Failed to load data" }: Props
return (
<div className="flex flex-col items-center gap-3 py-8 text-center">
<span className="text-3xl">⚠️</span>
<p className="text-sm font-medium text-gray-700">{message}</p>
<p className="text-xs text-gray-400">Check your connection and try again</p>
<p className="text-sm font-medium text-slate-300">{message}</p>
<p className="text-xs text-slate-500">Check your connection and try again</p>
{onRetry && (
<button onClick={onRetry} className="btn-secondary btn-sm mt-2">
Retry
Expand Down
10 changes: 5 additions & 5 deletions src/components/common/Skeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ export function Skeleton({ className = "", rows = 1 }: Props) {
return (
<div className="animate-pulse space-y-2">
{Array.from({ length: rows }).map((_, i) => (
<div key={i} className={"bg-gray-200 dark:bg-gray-700 rounded " + (className || "h-4 w-full")} />
<div key={i} className={"bg-navy-700/60 rounded " + (className || "h-4 w-full")} />
))}
</div>
)
}
export function TransactionSkeleton() {
return (
<div className="flex items-center justify-between py-3 border-b animate-pulse">
<div className="flex items-center justify-between py-3 border-b border-navy-700/50 animate-pulse">
<div className="flex items-center gap-3">
<div className="h-8 w-8 bg-gray-200 rounded-full" />
<div className="space-y-1"><div className="h-3 w-32 bg-gray-200 rounded" /><div className="h-2 w-20 bg-gray-100 rounded" /></div>
<div className="h-8 w-8 bg-navy-700/60 rounded-full" />
<div className="space-y-1"><div className="h-3 w-32 bg-navy-700/60 rounded" /><div className="h-2 w-20 bg-navy-800/60 rounded" /></div>
</div>
<div className="h-4 w-16 bg-gray-200 rounded" />
<div className="h-4 w-16 bg-navy-700/60 rounded" />
</div>
)
}
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @type {import('tailwindcss').Config} */
export default {
darkMode: 'class',
content: [
'./index.html',
'./src/**/*.{js,ts,jsx,tsx}',
Expand Down