Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aizad/73968/pcd ts #5

Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import ContentLoader from 'react-content-loader';
import React from 'react';
import PropTypes from 'prop-types';

const PositionsCardLoader = ({ speed }) => (
type TPositionCardLoaderProps = {
speed?: number;
};

const PositionsCardLoader = ({ speed }: TPositionCardLoaderProps) => (
<ContentLoader
height={173}
width={218}
Expand All @@ -28,8 +31,4 @@ const PositionsCardLoader = ({ speed }) => (
</ContentLoader>
);

PositionsCardLoader.propTypes = {
speed: PropTypes.number,
};

export { PositionsCardLoader };