updated the examples and added strict rules

This commit is contained in:
Anirban Kar
2024-12-15 22:15:17 +05:30
parent 9f5c01f5dd
commit 31706183b4
7 changed files with 125 additions and 59 deletions

View File

@@ -56,7 +56,8 @@ export default function ProvidersTab() {
<div className="flex items-center gap-2">
<img
src={`/icons/${provider.name}.svg`} // Attempt to load the specific icon
onError={(e) => { // Fallback to default icon on error
onError={(e) => {
// Fallback to default icon on error
e.currentTarget.src = DefaultIcon;
}}
alt={`${provider.name} icon`}