Skip to content

Commit

Permalink
fix(pml): Remove remaining LaunchMarket entrypoints (#1297)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredvu authored Nov 15, 2024
1 parent 3bf124e commit fe84e82
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 40 deletions.
9 changes: 1 addition & 8 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,7 @@ const Content = () => {
</Route>

<Route path={AppRoute.Markets}>
{testFlags.pml ? (
<Route
path={MarketsRoute.New}
element={<Navigate to={AppRoute.LaunchMarket} replace />}
/>
) : (
<Route path={MarketsRoute.New} element={<NewMarket />} />
)}
{testFlags.pml ? null : <Route path={MarketsRoute.New} element={<NewMarket />} />}
<Route path={AppRoute.Markets} element={<MarketsPage />} />
</Route>

Expand Down
2 changes: 1 addition & 1 deletion src/constants/launchableMarkets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export enum LaunchMarketStatus {
SUCCESS,
}

export const ESTIMATED_LAUNCH_TIMEOUT = timeUnits.second * 30;
export const ESTIMATED_LAUNCH_TIMEOUT = timeUnits.minute;
10 changes: 0 additions & 10 deletions src/views/forms/NewMarketForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,6 @@ export const NewMarketForm = ({
<NewMarketSuccessStep2
transactionUrl={mintscanTxUrl.replace('{tx_hash}', proposalTxHash)}
tickerToAdd={tickerToAdd}
onLaunchAnotherMarket={() => {
setTickerToAdd(undefined);
setStep(NewMarketFormStep.SELECTION);

trackLaunchMarketFormStepChange({
currentStep: NewMarketFormStep.SUCCESS,
updatedStep: NewMarketFormStep.SELECTION,
ticker: undefined,
});
}}
/>
);
}
Expand Down
13 changes: 0 additions & 13 deletions src/views/forms/NewMarketForm/v7/NewMarketSuccessStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ import { Icon, IconName } from '@/components/Icon';
import { getDisplayableTickerFromMarket } from '@/lib/assetUtils';

type NewMarketSuccessStepProps = {
onLaunchAnotherMarket: () => void;
tickerToAdd: string;
transactionUrl: string;
};

export const NewMarketSuccessStep = ({
onLaunchAnotherMarket,
tickerToAdd,
transactionUrl,
}: NewMarketSuccessStepProps) => {
Expand Down Expand Up @@ -80,17 +78,6 @@ export const NewMarketSuccessStep = ({
{stringGetter({ key: STRING_KEYS.VIEW_TRANSACTION })}
<LinkOutIcon />
</Button>

{!isOnMarketTradePage && (
<Button
type={ButtonType.Button}
buttonStyle={ButtonStyle.WithoutBackground}
tw="h-fit text-color-text-0"
onClick={onLaunchAnotherMarket}
>
{stringGetter({ key: STRING_KEYS.LAUNCH_ANOTHER_MARKET })}
</Button>
)}
</div>
</$Container>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Link } from 'react-router-dom';
import styled from 'styled-components';

import { STRING_KEYS } from '@/constants/localization';
import { AppRoute } from '@/constants/routes';

import { useStringGetter } from '@/hooks/useStringGetter';

Expand Down Expand Up @@ -34,12 +32,6 @@ export const PermissionlessMarketsLiveNotification = ({
<div tw="relative flex flex-row">
<div tw="flex flex-col">
<span>{stringGetter({ key: STRING_KEYS.INSTANTLY_LAUNCH_BY_DEPOSITING })}</span>
<Link
tw="mt-0.75 text-color-accent visited:text-color-accent hover:underline"
to={AppRoute.LaunchMarket}
>
{stringGetter({ key: STRING_KEYS.READY_FOR_LAUNCH })}
</Link>
</div>
<$SpaceshipImg src="/hedgie-spaceship.png" alt="hedgie-spaceship" />
</div>
Expand Down

0 comments on commit fe84e82

Please sign in to comment.