Skip to content

Commit

Permalink
fix: clean small launchpad components, some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
WaDadidou committed Jun 30, 2024
1 parent 22c3d8b commit 4218321
Show file tree
Hide file tree
Showing 18 changed files with 97 additions and 266 deletions.
28 changes: 0 additions & 28 deletions packages/components/HeaderContent/HeaderContent.tsx

This file was deleted.

57 changes: 0 additions & 57 deletions packages/components/applicationTable/CollectionNameCell.tsx

This file was deleted.

1 change: 1 addition & 0 deletions packages/components/applicationTable/InnerCellText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { BrandText } from "../BrandText";
import { SVG } from "../SVG";

// TODO: Remove this component after correctly replaced its usage by packages/components/table
// ==========> WAIT FOR PR 1235

export const InnerCellText: React.FC<{
style?: StyleProp<ViewStyle>;
Expand Down
38 changes: 0 additions & 38 deletions packages/components/applicationTable/LinkIconAndRedirect.tsx

This file was deleted.

48 changes: 0 additions & 48 deletions packages/components/applicationTable/PercentageVolumeCell.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { LaunchpadCollectionsTable } from "../LaunchpadApplications/component/La
import { BrandText } from "@/components/BrandText";
import { ScreenContainer } from "@/components/ScreenContainer";
import { SecondaryBox } from "@/components/boxes/SecondaryBox";
import { SpacerColumn } from "@/components/spacer";
import { Tabs } from "@/components/tabs/Tabs";
import { useAppNavigation } from "@/hooks/navigation/useAppNavigation";
import { NetworkFeature } from "@/networks";
Expand Down Expand Up @@ -190,6 +191,8 @@ export const LaunchpadAdministrationOverviewScreen: React.FC = () => {
<LaunchpadCollectionsTable rows={dummyData} />
</View>

<SpacerColumn size={2} />

<TouchableOpacity
onPress={() => navigation.navigate("LaunchpadApplications")}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { FC, useState } from "react";
import { Image, TouchableOpacity, ViewStyle } from "react-native";
import Popover from "react-native-popover-view";

import { TooltipContant } from "./TooltipContant";
import { TooltipContent } from "./TooltipContent";

import avaPNG from "@/assets/default-images/ava.png";
import checkBadgeSVG from "@/assets/icons/certified.svg";
Expand Down Expand Up @@ -47,7 +47,7 @@ export const GuardiansList: FC<{ index: number }> = ({ index }) => {
popoverStyle={popoverStyle}
backgroundStyle={{ opacity: 0 }}
>
<TooltipContant />
<TooltipContent />
</Popover>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,26 @@ import avaPNG from "@/assets/default-images/ava.png";
import checkBadgeSVG from "@/assets/icons/certified.svg";
import SolanaCircleSVG from "@/assets/icons/networks/solana-circle.svg";
import { BrandText } from "@/components/BrandText";
import { HeaderContent } from "@/components/HeaderContent/HeaderContent";
import { SVG } from "@/components/SVG";
import { InnerCellText } from "@/components/applicationTable/InnerCellText";
import { lightblue, neutral00 } from "@/utils/style/colors";
import { fontSemibold16 } from "@/utils/style/fonts";
import { StateBadge } from "@/screens/Launchpad/LaunchpadAdmin/components/StateBadge";
import { neutral77 } from "@/utils/style/colors";
import { fontSemibold12, fontSemibold16 } from "@/utils/style/fonts";
import { layout } from "@/utils/style/layout";

export const TooltipContant = () => {
export const TooltipContent = () => {
return (
<>
<View style={flexRowCenter}>
<View>
<HeaderContent header="Collection Name">
<View>
<BrandText
style={[
fontSemibold12,
{ color: neutral77, marginBottom: layout.spacing_x1 },
]}
>
Collection Name
</BrandText>
<View style={listToggle}>
<Image
style={{
Expand All @@ -39,27 +46,31 @@ export const TooltipContant = () => {
</BrandText>
<SVG source={checkBadgeSVG} width={18} height={18} />
</View>
</HeaderContent>
<HeaderContent
style={{ marginTop: layout.spacing_x1_5 }}
header="Project Readiness for Mint"
>
<InnerCellText
style={{
backgroundColor: lightblue,
borderRadius: 100,
paddingHorizontal: 10,
paddingVertical: 5,
alignSelf: "flex-start",
}}
textStyle={{ color: neutral00 }}
</View>

<View style={{ marginTop: layout.spacing_x1_5 }}>
<BrandText
style={[
fontSemibold12,
{ color: neutral77, marginBottom: layout.spacing_x1 },
]}
>
Complete and ready to mint
</InnerCellText>
</HeaderContent>
Project Readiness for Mint
</BrandText>
<StateBadge text="Complete and ready to mint" />
</View>
</View>

<View>
<HeaderContent header="Collection network">
<View>
<BrandText
style={[
fontSemibold12,
{ color: neutral77, marginBottom: layout.spacing_x1 },
]}
>
Collection network
</BrandText>
<View style={listToggle}>
<SVG
width={28}
Expand All @@ -73,24 +84,19 @@ export const TooltipContant = () => {
Solana
</BrandText>
</View>
</HeaderContent>
<HeaderContent
style={{ marginTop: layout.spacing_x1_5 }}
header="Basic marketing package"
>
<InnerCellText
style={{
backgroundColor: lightblue,
borderRadius: 100,
paddingHorizontal: 10,
paddingVertical: 5,
alignSelf: "flex-start",
}}
textStyle={{ color: neutral00 }}
</View>

<View style={{ marginTop: layout.spacing_x1_5 }}>
<BrandText
style={[
fontSemibold12,
{ color: neutral77, marginBottom: layout.spacing_x1 },
]}
>
Yes
</InnerCellText>
</HeaderContent>
Basic marketing package
</BrandText>
<StateBadge text="Yes" />
</View>
</View>
</View>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { LaunchpadAllProjectsTable } from "./component/LaunchpadAllProjectsTable
import { BrandText } from "@/components/BrandText";
import { ScreenContainer } from "@/components/ScreenContainer";
import { HighVolSortButton } from "@/components/sorts/HighVolSortButton";
import { SpacerColumn } from "@/components/spacer";
import { Tabs } from "@/components/tabs/Tabs";
import { useAppNavigation } from "@/hooks/navigation/useAppNavigation";
import { useIsMobile } from "@/hooks/useIsMobile";
Expand Down Expand Up @@ -155,6 +156,8 @@ export const LaunchpadAllProjectsScreen: React.FC = () => {
>
<LaunchpadAllProjectsTable rows={dummyData} />
</View>

<SpacerColumn size={16} />
</View>
</ScreenContainer>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import downArrowSVG from "@/assets/icons/downArrow.svg";
import upArrowSVG from "@/assets/icons/upArrow.svg";
import { SVG } from "@/components/SVG";
import { RoundedGradientImage } from "@/components/images/RoundedGradientImage";
import { SpacerColumn } from "@/components/spacer";
import { TableCell } from "@/components/table/TableCell";
import { TableHeader } from "@/components/table/TableHeader";
import { TableRow } from "@/components/table/TableRow";
Expand Down Expand Up @@ -73,7 +72,6 @@ export const LaunchpadAllProjectsTable: React.FC<{
)}
keyExtractor={(item) => item.id.toString()}
/>
<SpacerColumn size={16} />
</TableWrapper>
</View>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { View } from "react-native";
import { BrandText } from "@/components/BrandText";
import { ScreenContainer } from "@/components/ScreenContainer";
import { HighVolSortButton } from "@/components/sorts/HighVolSortButton";
import { SpacerColumn } from "@/components/spacer";
import { Tabs } from "@/components/tabs/Tabs";
import { useAppNavigation } from "@/hooks/navigation/useAppNavigation";
import { useIsMobile } from "@/hooks/useIsMobile";
Expand Down Expand Up @@ -111,6 +112,8 @@ export const LaunchpadApplicationsScreen: React.FC = () => {
>
<LaunchpadCollectionsTable rows={dummyData} />
</View>

<SpacerColumn size={16} />
</View>
</ScreenContainer>
);
Expand Down
Loading

0 comments on commit 4218321

Please sign in to comment.