Skip to content

Commit

Permalink
fix(launchpad): Make input optional, lint
Browse files Browse the repository at this point in the history
  • Loading branch information
WaDadidou committed Feb 19, 2025
1 parent 2a1dd1f commit 8e85f3c
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 31 deletions.
2 changes: 1 addition & 1 deletion packages/hooks/launchpad/useCreateCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const useCreateCollection = () => {
symbol: collectionFormValues.symbol,
website_link: collectionFormValues.websiteLink || "",
contact_email: collectionFormValues.email || "",
project_type: collectionFormValues.projectTypes.join() || "",
project_type: collectionFormValues.projectTypes?.join() || "",
tokens_count: assetsMetadataFormsValues?.assetsMetadatas?.length || 0,
reveal_time: collectionFormValues.revealTime || 0,
team_desc: collectionFormValues.teamDescription || "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from "react";
import { View, useWindowDimensions } from "react-native";

import { ApplicationCard } from "./ApplicationCard";
import { launchpadReviewBreakpointSM } from "../LaunchpadApplicationReviewScreen";

import { BrandText } from "@/components/BrandText";
import { launchpadReviewBreakpointM } from "@/screens/Launchpad/LaunchpadAdmin/LaunchpadApplicationReview/LaunchpadApplicationReviewScreen";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ import React from "react";
import { useWindowDimensions, View } from "react-native";

import { ApplicationCard } from "./ApplicationCard";
import {
launchpadReviewBreakpointS,
launchpadReviewBreakpointSM,
} from "../LaunchpadApplicationReviewScreen";
import { launchpadReviewBreakpointS } from "../LaunchpadApplicationReviewScreen";

import { BrandText } from "@/components/BrandText";
import { fontSemibold20 } from "@/utils/style/fonts";
Expand Down Expand Up @@ -66,26 +63,26 @@ export const ProjectInformation: React.FC<{
{/* />*/}
{/*</View>*/}

{/* <View*/}
{/* style={{*/}
{/* flexDirection:*/}
{/* width >= launchpadReviewBreakpointSM ? "row" : "column",*/}
{/* flexWrap: "wrap",*/}
{/* flex: 1,*/}
{/* gap: layout.spacing_x1_5,*/}
{/* }}*/}
{/* >*/}
{/* <ApplicationCard*/}
{/* title="Derivative"*/}
{/* value={collectionData.is_project_derivative ? "Yes" : "No"}*/}
{/* style={{ maxHeight: 64 }}*/}
{/* />*/}
{/* <ApplicationCard*/}
{/* title="Ready for Mint"*/}
{/* value={collectionData.is_ready_for_mint ? "Yes" : "No"}*/}
{/* style={{ maxHeight: 64 }}*/}
{/* />*/}
{/* </View>*/}
{/* <View*/}
{/* style={{*/}
{/* flexDirection:*/}
{/* width >= launchpadReviewBreakpointSM ? "row" : "column",*/}
{/* flexWrap: "wrap",*/}
{/* flex: 1,*/}
{/* gap: layout.spacing_x1_5,*/}
{/* }}*/}
{/* >*/}
{/* <ApplicationCard*/}
{/* title="Derivative"*/}
{/* value={collectionData.is_project_derivative ? "Yes" : "No"}*/}
{/* style={{ maxHeight: 64 }}*/}
{/* />*/}
{/* <ApplicationCard*/}
{/* title="Ready for Mint"*/}
{/* value={collectionData.is_ready_for_mint ? "Yes" : "No"}*/}
{/* style={{ maxHeight: 64 }}*/}
{/* />*/}
{/* </View>*/}
</View>

<View
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,7 @@ const instantiateNftLaunchpad = async ({
wallet,
});
}
console.log(
"CW ADMIN FACTORY used:",
network.cwAdminFactoryContractAddress,
);
console.log("CW ADMIN FACTORY used:", network.cwAdminFactoryContractAddress);

// DA0DA0
if (
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/types/launchpad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const ZodCollectionFormValues = z.object({
.trim()
.refine((value) => EMAIL_REGEXP.test(value), DEFAULT_FORM_ERRORS.onlyEmail)
.optional(),
projectTypes: z.array(z.string().trim()),
projectTypes: z.array(z.string().trim()).optional(),
revealTime: z.number().optional(),
teamDescription: z.string().trim().optional(),
partnersDescription: z.string().trim().optional(),
Expand Down

0 comments on commit 8e85f3c

Please sign in to comment.