Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
rename creator-tokens folder to creator-token
Browse files Browse the repository at this point in the history
  • Loading branch information
intergalacticspacehighway committed Oct 10, 2023
1 parent 56f6bb5 commit 568cac7
Show file tree
Hide file tree
Showing 18 changed files with 24 additions and 24 deletions.
1 change: 1 addition & 0 deletions apps/next/src/pages/creator-token/self-serve-explainer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "app/pages/creator-token/self-serve-explainer";
1 change: 1 addition & 0 deletions apps/next/src/pages/creator-token/top.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "app/pages/creator-token/top";

This file was deleted.

1 change: 0 additions & 1 deletion apps/next/src/pages/creator-tokens/top.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion packages/app/components/home/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const CreatorTokensBanner = () => {
</View>
<Text
onPress={() => {
router.push("/creator-tokens/self-serve-explainer");
router.push("/creator-token/self-serve-explainer");
}}
tw="text-13 ml-2 font-bold text-gray-900 underline"
>
Expand Down
4 changes: 2 additions & 2 deletions packages/app/components/home/top-part-creator-tokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { colors } from "@showtime-xyz/universal.tailwind";
import { Text } from "@showtime-xyz/universal.text";
import { View } from "@showtime-xyz/universal.view";

import { TopCreatorTokensItem } from "../creator-tokens/top-creator-tokens";
import { TopCreatorTokensItem } from "../creator-token/top-creator-tokens";

export const TopPartCreatorTokens = () => {
const isDark = useIsDarkMode();
Expand All @@ -20,7 +20,7 @@ export const TopPartCreatorTokens = () => {
</Text>
<Text
onPress={() => {
router.push("/creator-tokens/top");
router.push("/creator-token/top");
}}
tw="text-xs font-semibold text-gray-500"
>
Expand Down
18 changes: 9 additions & 9 deletions packages/app/components/profile/creator-tokens-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const CreatorTokensPanel = ({ isSelf }: CreatorTokensPanelProps) => {
onPress={() => {
router.push(
Platform.select({
native: "/creator-tokens/explanation",
native: "/creator-token/explanation",
web: {
pathname: router.pathname,
query: {
Expand All @@ -36,10 +36,10 @@ export const CreatorTokensPanel = ({ isSelf }: CreatorTokensPanelProps) => {
} as any,
}),
Platform.select({
native: "/creator-tokens/explanation",
native: "/creator-token/explanation",
web:
router.asPath === "/"
? "/creator-tokens/explanation"
? "/creator-token/explanation"
: router.asPath,
}),
{ shallow: true }
Expand All @@ -66,7 +66,7 @@ export const CreatorTokensPanel = ({ isSelf }: CreatorTokensPanelProps) => {
onPress={() => {
router.push(
Platform.select({
native: "/creator-tokens/explanation",
native: "/creator-token/explanation",
web: {
pathname: router.pathname,
query: {
Expand All @@ -76,10 +76,10 @@ export const CreatorTokensPanel = ({ isSelf }: CreatorTokensPanelProps) => {
} as any,
}),
Platform.select({
native: "/creator-tokens/explanation",
native: "/creator-token/explanation",
web:
router.asPath === "/"
? "/creator-tokens/explanation"
? "/creator-token/explanation"
: router.asPath,
}),
{ shallow: true }
Expand Down Expand Up @@ -140,7 +140,7 @@ export const CreatorTokensPanel = ({ isSelf }: CreatorTokensPanelProps) => {
onPress={() => {
router.push(
Platform.select({
native: "/creator-tokens/explanation",
native: "/creator-token/explanation",
web: {
pathname: router.pathname,
query: {
Expand All @@ -150,10 +150,10 @@ export const CreatorTokensPanel = ({ isSelf }: CreatorTokensPanelProps) => {
} as any,
}),
Platform.select({
native: "/creator-tokens/explanation",
native: "/creator-token/explanation",
web:
router.asPath === "/"
? "/creator-tokens/explanation"
? "/creator-token/explanation"
: router.asPath,
}),
{ shallow: true }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const useRedirectToCreatorTokensShare = () => {
const router = useRouter();
const redirectToCreatorTokensShare = useCallback(
async (username: string) => {
const as = `/creator-tokens/${username}/share`;
const as = `/creator-token/${username}/share`;
router.push(
Platform.select({
native: as,
Expand Down
8 changes: 4 additions & 4 deletions packages/app/navigation/linking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ export const linking: LinkingOptions<ReactNavigation.RootParamList> = {
addEmail: "settings/add-email",
verifyPhoneNumber: "settings/verify-phone-number",
dropExplanation: "dropExplanation",
creatorTokensExplanation: "creator-tokens/explanation",
creatorTokensExplanation: "creator-token/explanation",
enterInviteCode: "enterInviteCode",
creatorTokensSelfServeExplainer: "creator-tokens/self-serve-explainer",
creatorTokensSelfServeExplainer: "creator-token/self-serve-explainer",
privacySecuritySettings: "settings/privacy-and-security",
notificationSettings: "settings/notifications",
blockedList: "settings/blocked-list",
Expand All @@ -90,8 +90,8 @@ export const linking: LinkingOptions<ReactNavigation.RootParamList> = {
channelsMessageReactions:
"channels/:channelId/messages/:messageId/reactions",
channelUnlocked: "channels/:contractAddress/unlocked",
creatorTokensShare: "creator-tokens/:username/share",
topCreatorTokens: "creator-tokens/top",
creatorTokensShare: "creator-token/:username/share",
topCreatorTokens: "creator-token/top",
bottomTabs: {
initialRouteName: "homeTab",
screens: {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/screens/creator-tokens-explanation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const CreatorTokensExplanationScreen = withModalScreen(
CreatorTokensExplanation,
{
title: "",
matchingPathname: "/creator-tokens/explanation",
matchingPathname: "/creator-token/explanation",
matchingQueryParam: "creatorTokensExplanationModal",
tw: "w-full md:w-[420px] web:lg:pb-8",
snapPoints: [400],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SelfServeExplainer } from "app/components/creator-tokens/self-serve-explainer";
import { SelfServeExplainer } from "app/components/creator-token/self-serve-explainer";
import { withColorScheme } from "app/components/memo-with-theme";
import { useUser } from "app/hooks/use-user";
import { useTrackPageViewed } from "app/lib/analytics";
Expand Down
4 changes: 2 additions & 2 deletions packages/app/screens/creator-tokens-share.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Platform } from "react-native";

import { withModalScreen } from "@showtime-xyz/universal.modal-screen";

import { CreatorTokensShareModal } from "app/components/creator-tokens/creator-tokens-share";
import { CreatorTokensShareModal } from "app/components/creator-token/creator-tokens-share";

export const CreatorTokensShareModalScreen = () => {
if (Platform.OS !== "web") return <CreatorTokensShareModal />;
Expand All @@ -13,7 +13,7 @@ const CreatorTokensShareWidthModalScreen = withModalScreen(
CreatorTokensShareModal,
{
title: "",
matchingPathname: "/creator-tokens/[username]/share",
matchingPathname: "/creator-token/[username]/share",
matchingQueryParam: "creatorTokensShareModal",
disableBackdropPress: true,
snapPoints: ["100%"],
Expand Down
2 changes: 1 addition & 1 deletion packages/app/screens/top-creator-tokens.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TopCreatorTokens } from "app/components/creator-tokens/top-creator-tokens";
import { TopCreatorTokens } from "app/components/creator-token/top-creator-tokens";
import { withColorScheme } from "app/components/memo-with-theme";
import { useTrackPageViewed } from "app/lib/analytics";

Expand Down

0 comments on commit 568cac7

Please sign in to comment.