Skip to content

Commit

Permalink
fix ios issues
Browse files Browse the repository at this point in the history
  • Loading branch information
thedev132 committed Jan 25, 2025
1 parent 84a8405 commit c1fc0ed
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ function Event({
const { data } = useSWR<OrganizationExpanded>(
hideBalance ? null : `organizations/${event.id}`,
);
console.log(event);
const { data: transactions, isLoading: transactionsIsLoading } = useSWR<
PaginatedResponse<ITransaction>
>(showTransactions ? `organizations/${event.id}/transactions?limit=5` : null);
Expand All @@ -99,7 +98,7 @@ function Event({
const scheme = useColorScheme();

const color = orgColor(event.id);

return (
<TouchableHighlight
onPress={onPress}
Expand All @@ -116,6 +115,8 @@ function Event({
}}
imageStyle={{
borderRadius: 10,
width: event.background_image && !pinned ? "100%" : 0,
height: event.background_image && !pinned ? "auto" : 0,
}}
contentFit="cover"
style={{
Expand All @@ -125,7 +126,7 @@ function Event({
>
{event.background_image && !pinned && (
<LinearGradient
colors={["transparent", "#222226"]}
colors={scheme === "dark" ? ["transparent", themeColors.background] : ["#transparent", "#f0f4f8"]}
locations={[0.5, 1]}
style={{
...StyleSheet.absoluteFillObject,
Expand Down Expand Up @@ -200,7 +201,7 @@ function Event({
<Text
numberOfLines={2}
style={{
color: themeColors.text,
color: event.background_image && !pinned ? "#fff" : themeColors.text,
fontSize: 20,
fontWeight: "600",
}}
Expand Down

0 comments on commit c1fc0ed

Please sign in to comment.