Skip to content

Commit

Permalink
fix: rename components and titles
Browse files Browse the repository at this point in the history
  • Loading branch information
WaDadidou committed Jun 29, 2024
1 parent 75444bc commit 83e08fb
Show file tree
Hide file tree
Showing 21 changed files with 35 additions and 35 deletions.
16 changes: 8 additions & 8 deletions packages/components/navigation/getNormalModeScreens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ import { GovernanceScreen } from "@/screens/Governance/GovernanceScreen";
import { GuardiansScreen } from "@/screens/Guardians/GuardiansScreen";
import { HashtagFeedScreen } from "@/screens/HashtagFeed/HashtagFeedScreen";
import { HomeScreen } from "@/screens/Home/HomeScreen";
import { LaunchpadAdministrationDashboardScreen } from "@/screens/Launchpad/LaunchpadAdministrationDashboard/LaunchpadAdministrationDashboardScreen";
import { LaunchpadAllProjectAdministrationDashScreen } from "@/screens/Launchpad/LaunchpadAllProjectAdministrationDash/LaunchpadAllProjectAdministrationDashScreen";
import { LaunchpadAdministrationOverviewScreen } from "@/screens/Launchpad/LaunchpadAdministrationOverview/LaunchpadAdministrationOverviewScreen";
import { LaunchpadAllProjectsScreen } from "@/screens/Launchpad/LaunchpadAllProjects/LaunchpadAllProjectsScreen";
import { LaunchpadApplicationReview } from "@/screens/Launchpad/LaunchpadApplicationReview/LaunchpadApplicationReview";
import { LaunchpadApplicationsScreen } from "@/screens/Launchpad/LaunchpadApplications/LaunchpadApplicationsScreen";
import { LaunchpadApplyScreen } from "@/screens/Launchpad/LaunchpadApplyScreen";
import { LaunchpadCompleteScreen } from "@/screens/Launchpad/LaunchpadCompleteScreen";
import { LaunchpadCreateScreen } from "@/screens/Launchpad/LaunchpadCreate/LaunchpadCreateScreen";
import { LaunchpadMyCollectionsScreen } from "@/screens/Launchpad/LaunchpadMyCollectionsScreen";
import { LaunchpadReadyCollectionsScreen } from "@/screens/Launchpad/LaunchpadReadyApplications/LaunchpadReadyCollectionsScreen";
import { LaunchpadReadyApplicationsScreen } from "@/screens/Launchpad/LaunchpadReadyApplications/LaunchpadReadyApplicationsScreen";
import { LaunchpadScreen } from "@/screens/Launchpad/LaunchpadScreen";
import { MintCollectionScreen } from "@/screens/Launchpad/MintCollectionScreen";
import { CollectionScreen } from "@/screens/Marketplace/CollectionScreen";
Expand Down Expand Up @@ -242,8 +242,8 @@ export const getNormalModeScreens = ({ appMode }: { appMode: AppMode }) => {
options={{ header: () => null, title: screenTitle("Mint Collection") }}
/>
<Nav.Screen
name="LaunchpadAdministrationDashboard"
component={LaunchpadAdministrationDashboardScreen}
name="LaunchpadAdministrationOverview"
component={LaunchpadAdministrationOverviewScreen}
options={{
header: () => null,
title: screenTitle("Launchpad Administration Dashboard"),
Expand All @@ -259,15 +259,15 @@ export const getNormalModeScreens = ({ appMode }: { appMode: AppMode }) => {
/>
<Nav.Screen
name="LaunchpadReadyApplications"
component={LaunchpadReadyCollectionsScreen}
component={LaunchpadReadyApplicationsScreen}
options={{
header: () => null,
title: screenTitle("Launchpad Ready Applications"),
}}
/>
<Nav.Screen
name="LaunchpadAllProjectAdministrationDash"
component={LaunchpadAllProjectAdministrationDashScreen}
name="LaunchpadAllProjects"
component={LaunchpadAllProjectsScreen}
options={{
header: () => null,
title: screenTitle("Launchpad All Applications"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const dummyData: DummyLaunchpadCollection[] = [
},
];

export const LaunchpadAdministrationDashboardScreen: React.FC = () => {
export const LaunchpadAdministrationOverviewScreen: React.FC = () => {
const navigation = useAppNavigation();
const { width } = useWindowDimensions();

Expand Down Expand Up @@ -119,7 +119,7 @@ export const LaunchpadAdministrationDashboardScreen: React.FC = () => {
isLarge
footerChildren={<></>}
headerChildren={
<BrandText style={fontSemibold20}>NFT Launchpad</BrandText>
<BrandText style={fontSemibold20}>Administration Dashboard</BrandText>
}
responsive
forceNetworkFeatures={[NetworkFeature.NFTLaunchpad]}
Expand All @@ -133,7 +133,9 @@ export const LaunchpadAdministrationDashboardScreen: React.FC = () => {
alignItems: "center",
}}
>
<BrandText style={fontSemibold28}>Administration Dashboard</BrandText>
<BrandText style={fontSemibold28}>
Launchpad Administration Overview
</BrandText>
</View>

<View
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { TableRow } from "@/components/table/TableRow";
import { CellBrandText, TableTextCell } from "@/components/table/TableTextCell";
import { TableWrapper } from "@/components/table/TableWrapper";
import { TableColumns } from "@/components/table/utils";
import { DummyLaunchpadCollection } from "@/screens/Launchpad/LaunchpadAdministrationDashboard/LaunchpadAdministrationDashboardScreen";
import { DummyLaunchpadCollection } from "@/screens/Launchpad/LaunchpadAdministrationOverview/LaunchpadAdministrationOverviewScreen";
import { secondaryColor } from "@/utils/style/colors";
import { layout, screenContentMaxWidthLarge } from "@/utils/style/layout";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from "react";
import { View } from "react-native";

import { AllApplicationsTable } from "./component/AllApplicationsTable";
import { LaunchpadAllProjectsTable } from "./component/LaunchpadAllProjectsTable";

import { BrandText } from "@/components/BrandText";
import { ScreenContainer } from "@/components/ScreenContainer";
Expand Down Expand Up @@ -51,7 +51,7 @@ const dummyData = [
},
];

export const LaunchpadAllProjectAdministrationDashScreen: React.FC = () => {
export const LaunchpadAllProjectsScreen: React.FC = () => {
const navigation = useAppNavigation();
const isMobile = useIsMobile();

Expand Down Expand Up @@ -80,10 +80,10 @@ export const LaunchpadAllProjectAdministrationDashScreen: React.FC = () => {
isLarge
footerChildren={<></>}
headerChildren={
<BrandText style={fontSemibold20}>NFT Launchpad</BrandText>
<BrandText style={fontSemibold20}>Administration Dashboard</BrandText>
}
responsive
onBackPress={() => navigation.goBack()}
onBackPress={() => navigation.navigate("LaunchpadAdministrationOverview")}
forceNetworkFeatures={[NetworkFeature.NFTLaunchpad]}
>
<View
Expand Down Expand Up @@ -139,7 +139,7 @@ export const LaunchpadAllProjectAdministrationDashScreen: React.FC = () => {
marginTop: layout.spacing_x4,
}}
>
<AllApplicationsTable rows={dummyData} />
<LaunchpadAllProjectsTable rows={dummyData} />
</View>
</View>
</ScreenContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const TABLE_COLUMNS: TableColumns = {
},
};

export const AllApplicationsTable: React.FC<{
export const LaunchpadAllProjectsTable: React.FC<{
rows: any[];
}> = ({ rows }) => {
const isMobile = useIsMobile();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const LaunchpadApplicationsScreen: React.FC = () => {
isLarge
footerChildren={<></>}
headerChildren={
<BrandText style={fontSemibold20}>NFT Launchpad</BrandText>
<BrandText style={fontSemibold20}>Administration Dashboard</BrandText>
}
responsive
onBackPress={() => navigation.goBack()}
Expand All @@ -67,7 +67,7 @@ export const LaunchpadApplicationsScreen: React.FC = () => {
alignItems: "center",
}}
>
<BrandText style={fontSemibold28}>Applications</BrandText>
<BrandText style={fontSemibold28}>Launchpad Applications</BrandText>
</View>

<View
Expand Down
2 changes: 1 addition & 1 deletion packages/screens/Launchpad/LaunchpadApplyScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const LaunchpadApplyScreen: ScreenFC<"LaunchpadApply"> = () => {
<ScreenContainer
forceNetworkFeatures={[NetworkFeature.NFTLaunchpad]}
headerChildren={
<BrandText style={fontSemibold20}>NFT Launchpad</BrandText>
<BrandText style={fontSemibold20}>Apply to Launchpad</BrandText>
}
>
<LaunchpadBanner />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const LaunchpadCreateScreen: ScreenFC<"LaunchpadCreate"> = () => {
forceNetworkFeatures={[NetworkFeature.NFTLaunchpad]}
// TODO: Remove after tests
forceNetworkId="teritori-testnet"
headerChildren={<BrandText>Collection Creation</BrandText>}
headerChildren={<BrandText>Apply to Launchpad</BrandText>}
onBackPress={() => navigation.navigate("LaunchpadApply")}
>
<View
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const LaunchpadMyCollectionsScreen: ScreenFC<
responsive
footerChildren={<></>}
forceNetworkFeatures={[NetworkFeature.NFTLaunchpad]}
headerChildren={<BrandText>My Collections</BrandText>}
headerChildren={<BrandText>Apply to Launchpad</BrandText>}
onBackPress={() => navigation.navigate("LaunchpadApply")}
>
<View
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { LaunchpadReadyCollectionsTable } from "@/screens/Launchpad/LaunchpadRea
import { neutral33 } from "@/utils/style/colors";
import { fontSemibold20, fontSemibold28 } from "@/utils/style/fonts";
import { layout } from "@/utils/style/layout";
import {} from "@/screens/Launchpad/LaunchpadAdministrationDashboard/LaunchpadAdministrationDashboardScreen";
import {} from "@/screens/Launchpad/LaunchpadAdministrationOverview/LaunchpadAdministrationOverviewScreen";

type TabsListType = "readyForListing" | "waitingForApproval";

Expand All @@ -27,7 +27,7 @@ export interface DummyLaunchpadReadyCollection {
basicMarketingPackage: string;
}

export const LaunchpadReadyCollectionsScreen: React.FC = () => {
export const LaunchpadReadyApplicationsScreen: React.FC = () => {
const navigation = useAppNavigation();
const isMobile = useIsMobile();

Expand Down Expand Up @@ -63,7 +63,7 @@ export const LaunchpadReadyCollectionsScreen: React.FC = () => {
isLarge
footerChildren={<></>}
headerChildren={
<BrandText style={fontSemibold20}>NFT Launchpad</BrandText>
<BrandText style={fontSemibold20}>Administration Dashboard</BrandText>
}
responsive
onBackPress={() => navigation.goBack()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { TableRow } from "@/components/table/TableRow";
import { CellBrandText, TableTextCell } from "@/components/table/TableTextCell";
import { TableWrapper } from "@/components/table/TableWrapper";
import { TableColumns } from "@/components/table/utils";
import { DummyLaunchpadReadyCollection } from "@/screens/Launchpad/LaunchpadReadyApplications/LaunchpadReadyCollectionsScreen";
import { DummyLaunchpadReadyCollection } from "@/screens/Launchpad/LaunchpadReadyApplications/LaunchpadReadyApplicationsScreen";
import { layout, screenContentMaxWidthLarge } from "@/utils/style/layout";

const columns: TableColumns = {
Expand Down
4 changes: 1 addition & 3 deletions packages/screens/Launchpad/LaunchpadScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ export const LaunchpadScreen: ScreenFC<"Launchpad"> = () => {
return (
<ScreenContainer
forceNetworkFeatures={[NetworkFeature.NFTLaunchpad]}
headerChildren={
<BrandText style={fontSemibold20}>NFT Launchpad</BrandText>
}
headerChildren={<BrandText style={fontSemibold20}>Launchpad</BrandText>}
>
<View
style={{
Expand Down
8 changes: 4 additions & 4 deletions packages/utils/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ export type RootStackParamList = {
LaunchpadCreate: undefined;
LaunchpadComplete: { id: string };
LaunchpadMyCollections: undefined;
LaunchpadAdministrationDashboard: undefined;
LaunchpadAdministrationOverview: undefined;
LaunchpadApplications: undefined;
LaunchpadApplicationReview: undefined;
LaunchpadReadyApplications: undefined;
LaunchpadAllProjectAdministrationDash: undefined;
LaunchpadAllProjects: undefined;

MintCollection: { id: string };
TNSHome: { modal: string; name?: string } | undefined;
Expand Down Expand Up @@ -204,11 +204,11 @@ const navConfig: {
LaunchpadCreate: "launchpad/create",
LaunchpadComplete: "launchpad/complete/:id",
LaunchpadMyCollections: "launchpad/my-collections",
LaunchpadAdministrationDashboard: "launchpad/admin",
LaunchpadAdministrationOverview: "launchpad/admin",
LaunchpadApplications: "launchpad/admin/applications",
LaunchpadApplicationReview: "launchpad/admin/application-review",
LaunchpadReadyApplications: "launchpad/admin/ready-applications",
LaunchpadAllProjectAdministrationDash: "launchpad/admin/all-projects",
LaunchpadAllProjects: "launchpad/admin/all-projects",

// Mint NFT collection
MintCollection: "collection/:id/mint",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const SIDEBAR_LIST: SidebarRecordType = {
title: "Admin Dashboard",
id: "admin",
icon: gridSVG,
route: "LaunchpadAdministrationDashboard",
route: "LaunchpadAdministrationOverview",
},
},
},
Expand Down

0 comments on commit 83e08fb

Please sign in to comment.