From 27f28c8e6c6e08a551dd6e907d5a8fd380ea9a5f Mon Sep 17 00:00:00 2001 From: m-sebastiyan Date: Fri, 19 Nov 2021 22:16:11 +0200 Subject: [PATCH] fix: build by removing unneeded code (#1021) --- CHANGELOG.md | 2 + .../components/DesignAndInfoStep/index.less | 24 -------- .../components/DesignAndInfoStep/index.tsx | 61 ------------------- .../components/DesignAndInfoStep/interface.ts | 7 --- .../components/SalesSettingsStep/index.less | 21 ------- .../components/SalesSettingsStep/index.tsx | 33 ---------- .../components/SalesSettingsStep/interface.ts | 6 -- .../packCreate/components/Sidebar/data.ts | 8 +-- .../views/packCreate/hooks/useValidation.ts | 2 - .../web/src/views/packCreate/index.less | 2 - .../web/src/views/packCreate/index.tsx | 13 ---- js/packages/web/src/views/packCreate/types.ts | 2 - 12 files changed, 4 insertions(+), 177 deletions(-) delete mode 100644 js/packages/web/src/views/packCreate/components/DesignAndInfoStep/index.less delete mode 100644 js/packages/web/src/views/packCreate/components/DesignAndInfoStep/index.tsx delete mode 100644 js/packages/web/src/views/packCreate/components/DesignAndInfoStep/interface.ts delete mode 100644 js/packages/web/src/views/packCreate/components/SalesSettingsStep/index.less delete mode 100644 js/packages/web/src/views/packCreate/components/SalesSettingsStep/index.tsx delete mode 100644 js/packages/web/src/views/packCreate/components/SalesSettingsStep/interface.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 534bbbc2f9b..16daf269800 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/js/packages/web/src/views/packCreate/components/DesignAndInfoStep/index.less b/js/packages/web/src/views/packCreate/components/DesignAndInfoStep/index.less deleted file mode 100644 index 30b2b0b4031..00000000000 --- a/js/packages/web/src/views/packCreate/components/DesignAndInfoStep/index.less +++ /dev/null @@ -1,24 +0,0 @@ -.design-step-wrapper { - .form-wrapper { - max-width: 688px; - - &__label, - &__sublabel { - font-weight: 600; - font-size: 14px; - line-height: 24px; - letter-spacing: 0.03em; - text-transform: uppercase; - - color: @grey-30; - margin: 0; - } - - &__sublabel { - font-weight: normal; - text-transform: none; - line-height: 17px; - margin-bottom: 8px; - } - } -} diff --git a/js/packages/web/src/views/packCreate/components/DesignAndInfoStep/index.tsx b/js/packages/web/src/views/packCreate/components/DesignAndInfoStep/index.tsx deleted file mode 100644 index 17c9910d63d..00000000000 --- a/js/packages/web/src/views/packCreate/components/DesignAndInfoStep/index.tsx +++ /dev/null @@ -1,61 +0,0 @@ -import React, { memo, ReactElement } from 'react'; -import { Form, Input } from 'antd'; - -import { DesignAndInfoStepProps } from './interface'; -import { InfoFormState } from '../../interface'; - -const { TextArea } = Input; - -const DesignAndInfoStep = ({ - setPackState, - form, -}: DesignAndInfoStepProps): ReactElement => { - const onValuesChange = (changedValues: Partial) => { - setPackState(changedValues); - }; - - return ( -
-
-

- Absolute url to cover image (Required) -

-

- We recomend an image of at least 900x400. -

- - - - -

Title (Required)

- - - - -

Description (Required)

- -