Skip to content

Commit

Permalink
fix: old imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitdevos committed Jun 21, 2024
1 parent 269a2d2 commit eb00e97
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 13 deletions.
4 changes: 1 addition & 3 deletions src/legal-officer/TestData.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { DateTime } from 'luxon';
import { toIsoString } from "@logion/client";
import { ProtectionRequest } from '@logion/client/dist/RecoveryClient.js';
import { toIsoString, ProtectionRequest } from "@logion/client";

import { DEFAULT_LEGAL_OFFICER, ANOTHER_LEGAL_OFFICER } from "../common/TestData";

Expand Down Expand Up @@ -29,7 +28,6 @@ export const RECOVERY_REQUESTS_HISTORY: ProtectionRequest[] = [
country: "Belgium",
},
createdOn: toIsoString(DateTime.fromISO('2021-06-10T11:40:00.000', {zone: "utc"})),
isRecovery: true,
addressToRecover: "5EsuBEtGbx8DoKTcKYDceJudEuzzHSS6GBPhbaPh4rsYsuoL",
status: "PENDING"
}
Expand Down
2 changes: 1 addition & 1 deletion src/legal-officer/recovery/RecoveryRequestStatus.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ProtectionRequestStatus as ProtectionRequestStatusType } from '@logion/client/dist/RecoveryClient.js';
import { ProtectionRequestStatus as ProtectionRequestStatusType } from '@logion/client';

import Icon from "../../common/Icon";
import { ORANGE, GREEN, RED, YELLOW } from "../../common/ColorTheme";
Expand Down
2 changes: 1 addition & 1 deletion src/wallet-user/protection/LegalOfficers.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ProtectionRequestStatus } from "@logion/client/dist/RecoveryClient.js";
import { ProtectionRequestStatus } from "@logion/client";

import './LegalOfficers.css';
import SelectLegalOfficerAndLoc, { LegalOfficerAndLoc } from "./SelectLegalOfficerAndLoc";
Expand Down
2 changes: 1 addition & 1 deletion src/wallet-user/protection/ProtectionRecoveryRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { SETTINGS_PATH } from '../UserPaths';
import SelectLegalOfficer from './SelectLegalOfficer';

import './ProtectionRecoveryRequest.css';
import { ProtectionRequestStatus } from '@logion/client/dist/RecoveryClient.js';
import { ProtectionRequestStatus } from '@logion/client';
import RecoveryRefusal from "./RecoveryRefusal";
import ButtonGroup from "../../common/ButtonGroup";
import ExtrinsicSubmissionStateView from 'src/ExtrinsicSubmissionStateView';
Expand Down
3 changes: 1 addition & 2 deletions src/wallet-user/protection/RecoveryRefusal.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { RejectedRecovery } from "@logion/client";
import { RejectedRecovery, LegalOfficerProtectionState } from "@logion/client";
import Button from "../../common/Button";
import { useUserContext } from "../UserContext";
import { useCommonContext } from "../../common/CommonContext";
import './RecoveryRefusal.css';
import { RED } from "../../common/ColorTheme";
import ButtonGroup from "../../common/ButtonGroup";
import { LegalOfficerProtectionState } from "@logion/client/dist/Recovery.js";
import { Refusal } from "./ProtectionRecoveryRequest";

export interface Props {
Expand Down
3 changes: 1 addition & 2 deletions src/wallet-user/protection/SelectLegalOfficer.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import Row from "react-bootstrap/Row";
import Col from "react-bootstrap/Col";
import { LegalOfficerClass } from "@logion/client";
import { LegalOfficerClass, ProtectionRequestStatus } from "@logion/client";
import { ValidAccountId } from "@logion/node-api";
import { ProtectionRequestStatus } from "@logion/client/dist/RecoveryClient.js";

import { ORANGE, GREEN, RED, YELLOW, BackgroundAndForegroundColors } from "../../common/ColorTheme";
import Select, { OptionType } from '../../common/Select';
Expand Down
4 changes: 1 addition & 3 deletions src/wallet-user/recovery/WalletRecoveryProcessTab.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import { ValidAccountId, Fees, TypesAccountData, Lgnt } from "@logion/node-api";
import { mutateRecoveredBalanceState, setProtectionState, setRecoveredBalanceState } from '../__mocks__/UserContextMock';

import WalletRecoveryProcessTab from "./WalletRecoveryProcessTab";
import { ClaimedRecovery } from '@logion/client';
import { ProtectionParameters } from '@logion/client/dist/Recovery.js';
import { BalanceState } from '@logion/client/dist/Balance.js';
import { ClaimedRecovery, ProtectionParameters, BalanceState } from '@logion/client';

jest.mock('../../logion-chain');
jest.mock('../../common/CommonContext');
Expand Down

0 comments on commit eb00e97

Please sign in to comment.