Skip to content

Commit

Permalink
fix: build by removing unneeded code (metaplex-foundation#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaxozhu authored Nov 19, 2021
1 parent a490e3d commit 27f28c8
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 177 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ incremented for features.
- Fix for punch ticket showing up as a button if you have an FLP presale token but didn't win. You should see Withdrawal.
- Fix lint issues preventing CI from passing
- In Jares first useful contribution we see Jares second rust thing, refunding some millions $ back in unused candy configs to the authorities. Check 'withdraw' in the candy-machine-cli :)
- Fix build issues preventing CI from passing
- Remove unneeded code from Packs creation admin

### Breaking

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
import { CreatePackSteps } from '../../types';

export const STEPS_TITLES: Record<number, string> = {
export const STEPS_TITLES: Record<CreatePackSteps, string> = {
[CreatePackSteps.SelectItems]: 'Select Items',
[CreatePackSteps.SelectVoucher]: 'Select Voucher',
[CreatePackSteps.AdjustQuantities]: 'Adjust Quantities',
// [CreatePackSteps.SalesSettings]: 'Sales Settings',
// [CreatePackSteps.DesignAndInfo]: 'Info & Design',
[CreatePackSteps.ReviewAndMint]: 'Review & Mint',
};

export const CONTINUE_TITLES: Record<number, string> = {
export const CONTINUE_TITLES: Record<CreatePackSteps, string> = {
[CreatePackSteps.SelectItems]: 'Continue to Voucher',
[CreatePackSteps.SelectVoucher]: 'Continue to Quantities',
[CreatePackSteps.AdjustQuantities]: 'Continue to Mint',
// [CreatePackSteps.SalesSettings]: 'Continue to Design',
// [CreatePackSteps.DesignAndInfo]: 'Continue to Mint',
[CreatePackSteps.ReviewAndMint]: 'Confirm & Mint',
};
2 changes: 0 additions & 2 deletions js/packages/web/src/views/packCreate/hooks/useValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ export const useValidation = ({
return Object.values(selectedVouchers).length > 0;
case CreatePackSteps.AdjustQuantities:
return isValidQuantities(attributes);
// case CreatePackSteps.DesignAndInfo:
// return !!(name && description && uri);
default:
return true;
}
Expand Down
2 changes: 0 additions & 2 deletions js/packages/web/src/views/packCreate/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
}

@import './components/AdjustQuantitiesStep/index.less';
@import './components/SalesSettingsStep/index.less';
@import './components/DesignAndInfoStep/index.less';
@import './components/ReviewAndMintStep/index.less';
@import './components/Header/index.less';
@import './components/Sidebar/index.less';
Expand Down
13 changes: 0 additions & 13 deletions js/packages/web/src/views/packCreate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ export const PackCreateView = (): ReactElement => {
const { accountByMint } = useUserAccounts();
const isValidStep = useValidation({ attributes, step });

// const [designForm] = Form.useForm<InfoFormState>();

const {
selectedItems,
selectedVouchers,
Expand Down Expand Up @@ -205,17 +203,6 @@ export const PackCreateView = (): ReactElement => {
/>
)}

{/* {step === CreatePackSteps.SalesSettings && (
<SalesSettingsStep
redeemEndDate={redeemEndDate}
setPackState={setPackState}
/>
)} */}

{/*{step === CreatePackSteps.DesignAndInfo && (
<DesignAndInfoStep form={designForm} setPackState={setPackState} />
)}*/}

{step === CreatePackSteps.ReviewAndMint && (
<ReviewAndMintStep
uri={uri}
Expand Down
2 changes: 0 additions & 2 deletions js/packages/web/src/views/packCreate/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@ export enum CreatePackSteps {
SelectItems,
SelectVoucher,
AdjustQuantities,
// SalesSettings,
DesignAndInfo,
ReviewAndMint,
}

0 comments on commit 27f28c8

Please sign in to comment.