Skip to content

Commit

Permalink
Merge pull request binary-com#42 from suisin-deriv/suisin/74147/ts_mi…
Browse files Browse the repository at this point in the history
…gration_poi_expired

Suisin/74147/ts migration poi expired
  • Loading branch information
shayan-deriv committed Nov 29, 2022
2 parents e3e61f7 + 5d99fad commit 099dabc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { act, fireEvent, render, screen } from '@testing-library/react';
import { fireEvent, render, screen } from '@testing-library/react';
import Expired from '../expired';

describe('<Expired />', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Button, Icon } from '@deriv/components';
import { localize } from '@deriv/translations';
import IconMessageContent from 'Components/icon-message-content';

const Expired = ({ handleRequireSubmission, is_from_external, redirect_button }) => {
type TExpired = {
handleRequireSubmission: () => void;
is_from_external: boolean;
redirect_button: React.ReactElement;
};

const Expired = ({ handleRequireSubmission, is_from_external, redirect_button }: TExpired) => {
return (
<IconMessageContent
message={localize('New proof of identity document needed')}
Expand All @@ -23,10 +28,4 @@ const Expired = ({ handleRequireSubmission, is_from_external, redirect_button })
);
};

Expired.propTypes = {
handleRequireSubmission: PropTypes.func,
is_from_external: PropTypes.bool,
redirect_button: PropTypes.element,
};

export default Expired;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Expired from './expired.jsx';
import Expired from './expired';

export default Expired;

0 comments on commit 099dabc

Please sign in to comment.