Skip to content

Commit

Permalink
chore: migrate empty-portfolio-message to ts (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
aizad-deriv authored Jan 10, 2023
1 parent 618a651 commit 541af22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import React from 'react';
import { Icon, Text } from '@deriv/components';
import { localize } from '@deriv/translations';

const EmptyPortfolioMessage = ({ error }) => (
type TEmptyPortfolioMessage = {
error: string;
};

const EmptyPortfolioMessage = ({ error }: TEmptyPortfolioMessage) => (
<div className='portfolio-empty'>
<div className='portfolio-empty__wrapper'>
{error ? (
Expand Down
2 changes: 1 addition & 1 deletion packages/reports/src/Components/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import EmptyPortfolioMessage from './empty-portfolio-message.jsx';
import EmptyPortfolioMessage from './empty-portfolio-message';

export default EmptyPortfolioMessage;

0 comments on commit 541af22

Please sign in to comment.