Skip to content

Commit

Permalink
chore: rollback HubLanding.tsx (out of scope)
Browse files Browse the repository at this point in the history
  • Loading branch information
WaDadidou committed Oct 29, 2024
1 parent 9ca03b3 commit 78d8af1
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions packages/components/hub/HubLanding.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Link } from "@react-navigation/native";
import React from "react";
import { View, Linking } from "react-native";

Expand All @@ -15,6 +14,7 @@ import {
import { useBanners } from "../../hooks/marketing/useBanners";
import { useMaxResolution } from "../../hooks/useMaxResolution";
import { useSelectedNetworkId } from "../../hooks/useSelectedNetwork";
import { Link } from "../Link";
import { OptimizedImage } from "../OptimizedImage";
import { Section } from "../Section";
import { DAppCard } from "../cards/DAppCard";
Expand All @@ -37,21 +37,19 @@ export const HubLanding: React.FC = () => {
<View style={{ alignItems: "center", width: "100%" }}>
<View style={{ flex: 1 }}>
{!!banner && (
<>
<Link to={banner?.url} style={{ width: "100%", maxHeight: 500 }}>
<OptimizedImage
sourceURI={banner?.image}
width={width}
height={350}
style={{
height: 350,
width,
borderRadius: 20,
marginTop: 56,
}}
/>
</Link>
</>
<Link to={banner?.url} style={{ width: "100%", maxHeight: 500 }}>
<OptimizedImage
sourceURI={banner?.image}
width={width}
height={350}
style={{
height: 350,
width,
borderRadius: 20,
marginTop: 56,
}}
/>
</Link>
)}

<NewsCarouselSection />
Expand Down

0 comments on commit 78d8af1

Please sign in to comment.