Waseel: driver app, dispatch, POI suggestions, map fixes
This commit is contained in:
@@ -11,7 +11,7 @@ const getBgVariantStyle = (variant: ButtonProps["bgVariant"]) => {
|
||||
case "success":
|
||||
return "bg-emerald-500";
|
||||
case "outline":
|
||||
return "bg-transparent-500 border-neutral-300 border-[0.5px]";
|
||||
return "bg-transparent border-neutral-300 dark:border-neutral-700 border-[0.5px]";
|
||||
default:
|
||||
return "bg-[#0286ff]";
|
||||
}
|
||||
@@ -20,7 +20,7 @@ const getBgVariantStyle = (variant: ButtonProps["bgVariant"]) => {
|
||||
const getTextVariantStyle = (variant: ButtonProps["textVariant"]) => {
|
||||
switch (variant) {
|
||||
case "primary":
|
||||
return "text-black";
|
||||
return "text-black dark:text-white";
|
||||
case "secondary":
|
||||
return "text-gray-100";
|
||||
case "danger":
|
||||
@@ -44,7 +44,7 @@ export const CustomButton = ({
|
||||
}: ButtonProps) => (
|
||||
<TouchableOpacity
|
||||
onPress={onPress}
|
||||
className={`w-full rounded-full p-3 flex flex-row justify-center items-center shadow-md shadow-neutral-400/70 ${getBgVariantStyle(bgVariant)} ${className}`}
|
||||
className={`w-full rounded-full p-3 flex flex-row justify-center items-center shadow-md shadow-neutral-400/70 dark:shadow-neutral-950/70 ${getBgVariantStyle(bgVariant)} ${className}`}
|
||||
{...props}
|
||||
>
|
||||
{IconLeft && <IconLeft />}
|
||||
|
||||
Reference in New Issue
Block a user