From af1543135d42adc2e97dc5243aeef7418cd3b00d Mon Sep 17 00:00:00 2001
From: Matthias Nott <mnott@mnsoft.org>
Date: Sat, 07 Mar 2026 08:39:26 +0100
Subject: [PATCH] feat: dual address auto-switch, custom icon, notifications, image support

---
 components/ui/IconButton.tsx |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/components/ui/IconButton.tsx b/components/ui/IconButton.tsx
index 8249e37..cef68af 100644
--- a/components/ui/IconButton.tsx
+++ b/components/ui/IconButton.tsx
@@ -1,28 +1,28 @@
 import React from "react";
 import { Pressable, Text, ViewStyle } from "react-native";
+import { useTheme } from "../../contexts/ThemeContext";
 
 interface IconButtonProps {
   onPress: () => void;
   label: string;
   size?: number;
   style?: ViewStyle;
-  className?: string;
 }
 
 export function IconButton({
   onPress,
   label,
   size = 24,
-  className = "",
 }: IconButtonProps) {
+  const { colors } = useTheme();
+
   return (
     <Pressable
       onPress={onPress}
-      className={`items-center justify-center ${className}`}
-      style={{ width: size, height: size }}
+      style={{ width: size, height: size, alignItems: "center", justifyContent: "center" }}
       hitSlop={{ top: 8, bottom: 8, left: 8, right: 8 }}
     >
-      <Text className="text-pai-text-secondary" style={{ fontSize: size * 0.7 }}>
+      <Text style={{ color: colors.textSecondary, fontSize: size * 0.7 }}>
         {label}
       </Text>
     </Pressable>

--
Gitblit v1.3.1