Skip to content

Commit 3edbf57

Browse files
committed
small refactor
1 parent 56d4e29 commit 3edbf57

61 files changed

Lines changed: 203 additions & 247 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/(operations)/components/add-burn-sft-meta-quantity.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ import {
1111
import { useForm } from 'react-hook-form';
1212
import { zodResolver } from '@hookform/resolvers/zod';
1313
import { Form } from '@/components/ui/form';
14-
import { OperationsInputField } from '@/components/operations/operations-input-field';
15-
import { OperationsSubmitButton } from '@/components/operations/operations-submit-button';
16-
import { CommonOpertationContentProps } from '@/components/operations/operations-common-types';
17-
import { OperationsRadioGroup } from '@/components/operations/operations-radio-group';
14+
import { OperationsInputField } from '@/app/(operations)/components/operations-ui/operations-input-field';
15+
import { OperationsSubmitButton } from '@/app/(operations)/components/operations-ui/operations-submit-button';
16+
import { CommonOpertationContentProps } from '@/app/(operations)/components/operations-ui/operations-common-types';
17+
import { OperationsRadioGroup } from '@/app/(operations)/components/operations-ui/operations-radio-group';
1818
import BigNumber from 'bignumber.js';
1919
import { useAccount, useConfig, useTransaction } from '@useelven/core';
2020
import axios from 'axios';
21-
import { specialOpertationsGasLimit } from '@/components/operations/constants';
21+
import { specialOpertationsGasLimit } from '@/app/(operations)/components/operations-ui/constants';
2222
import { useTxStatus } from '@/hooks/use-tx-status';
23-
import { OperationInfoBox } from '@/components/operation-info-box';
23+
import { OperationInfoBox } from './operations-ui/operation-info-box';
2424

2525
const formSchema = z.object({
2626
tokenId: z.string().min(1, 'The field is required'),

app/(operations)/components/change-properties.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ import {
1616
commonOpertationsGasLimit,
1717
builtInSC,
1818
TokenPropertyOrRole,
19-
} from '@/components/operations/constants';
20-
import { OperationsCheckboxGroup } from '@/components/operations/operations-checkbox-group';
21-
import { OperationsSubmitButton } from '@/components/operations/operations-submit-button';
19+
} from '@/app/(operations)/components/operations-ui/constants';
20+
import { OperationsCheckboxGroup } from '@/app/(operations)/components/operations-ui/operations-checkbox-group';
21+
import { OperationsSubmitButton } from '@/app/(operations)/components/operations-ui/operations-submit-button';
2222
import { useEffect } from 'react';
23-
import { CommonOpertationContentProps } from '@/components/operations/operations-common-types';
24-
import { OperationsSelectField } from '@/components/operations/operations-select-field';
23+
import { CommonOpertationContentProps } from '@/app/(operations)/components/operations-ui/operations-common-types';
24+
import { OperationsSelectField } from '@/app/(operations)/components/operations-ui/operations-select-field';
2525
import { useCreatorTokens } from '@/hooks/use-creator-tokens';
2626
import { getTokenIdKey } from '@/lib/get-token-id';
2727
import { useTransaction } from '@useelven/core';
28-
import { OperationInfoBox } from '@/components/operation-info-box';
28+
import { OperationInfoBox } from './operations-ui/operation-info-box';
2929
import { useTxStatus } from '@/hooks/use-tx-status';
3030

3131
const formSchema = z.object({

app/(operations)/components/freeze-unfreeze-single.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ import {
1313
import { useForm } from 'react-hook-form';
1414
import { zodResolver } from '@hookform/resolvers/zod';
1515
import { Form } from '@/components/ui/form';
16-
import { OperationsInputField } from '@/components/operations/operations-input-field';
17-
import { OperationsSubmitButton } from '@/components/operations/operations-submit-button';
18-
import { CommonOpertationContentProps } from '@/components/operations/operations-common-types';
19-
import { OperationsRadioGroup } from '@/components/operations/operations-radio-group';
16+
import { OperationsInputField } from '@/app/(operations)/components/operations-ui/operations-input-field';
17+
import { OperationsSubmitButton } from '@/app/(operations)/components/operations-ui/operations-submit-button';
18+
import { CommonOpertationContentProps } from '@/app/(operations)/components/operations-ui/operations-common-types';
19+
import { OperationsRadioGroup } from '@/app/(operations)/components/operations-ui/operations-radio-group';
2020
import BigNumber from 'bignumber.js';
2121
import { useConfig, useTransaction } from '@useelven/core';
2222
import axios from 'axios';
2323
import {
2424
builtInSC,
2525
commonOpertationsGasLimit,
26-
} from '@/components/operations/constants';
26+
} from '@/app/(operations)/components/operations-ui/constants';
2727
import { useTxStatus } from '@/hooks/use-tx-status';
28-
import { OperationInfoBox } from '@/components/operation-info-box';
28+
import { OperationInfoBox } from './operations-ui/operation-info-box';
2929

3030
const formSchema = z.object({
3131
tokenId: z.string().min(1, 'The field is required'),

app/(operations)/components/issue-nft-sft.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ import {
1616
issueTokenPayment,
1717
commonOpertationsGasLimit,
1818
builtInSC,
19-
} from '@/components/operations/constants';
20-
import { OperationsInputField } from '@/components/operations/operations-input-field';
21-
import { OperationsCheckboxGroup } from '@/components/operations/operations-checkbox-group';
22-
import { OperationsSubmitButton } from '@/components/operations/operations-submit-button';
23-
import { CommonOpertationContentProps } from '@/components/operations/operations-common-types';
19+
} from '@/app/(operations)/components/operations-ui/constants';
20+
import { OperationsInputField } from '@/app/(operations)/components/operations-ui/operations-input-field';
21+
import { OperationsCheckboxGroup } from '@/app/(operations)/components/operations-ui/operations-checkbox-group';
22+
import { OperationsSubmitButton } from '@/app/(operations)/components/operations-ui/operations-submit-button';
23+
import { CommonOpertationContentProps } from '@/app/(operations)/components/operations-ui/operations-common-types';
2424
import { useTransaction } from '@useelven/core';
2525
import { useTxStatus } from '@/hooks/use-tx-status';
26-
import { OperationInfoBox } from '@/components/operation-info-box';
26+
import { OperationInfoBox } from './operations-ui/operation-info-box';
2727

2828
const formSchema = z.object({
2929
name: z
File renamed without changes.

components/operation-footer.tsx renamed to app/(operations)/components/operations-ui/operation-footer.tsx

File renamed without changes.

components/operation-header.tsx renamed to app/(operations)/components/operations-ui/operation-header.tsx

File renamed without changes.

components/operation-info-box.tsx renamed to app/(operations)/components/operations-ui/operation-info-box.tsx

File renamed without changes.

components/operations/operations-auth-check.tsx renamed to app/(operations)/components/operations-ui/operations-auth-check.tsx

File renamed without changes.

components/operations/operations-checkbox-group.tsx renamed to app/(operations)/components/operations-ui/operations-checkbox-group.tsx

File renamed without changes.

0 commit comments

Comments
 (0)