Skip to content

Commit

Permalink
Merge pull request #4 from yauheni-kryzhyk-deriv/yauheni/76942/uiload…
Browse files Browse the repository at this point in the history
…er_ts_migration

Yauheni/76942/uiloader ts migration
  • Loading branch information
jim-deriv committed Sep 23, 2022
2 parents 673f7ed + 7a59739 commit af586b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import UILoader from './ui-loader.jsx';
import UILoader from './ui-loader';
import './ui-loader.scss';

export default UILoader;
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';

const UILoader = ({ className, classNameBlock }) => {
type TUILoader = {
className?: string;
classNameBlock?: string;
};
const UILoader = ({ className, classNameBlock }: TUILoader) => {
const block_class = classNames(classNameBlock, 'block-ui');
const loading_class = classNames('block-ui__loading', className);
return (
Expand All @@ -26,9 +29,4 @@ const UILoader = ({ className, classNameBlock }) => {
);
};

UILoader.propTypes = {
className: PropTypes.string,
classNameBlock: PropTypes.string,
};

export default UILoader;

0 comments on commit af586b1

Please sign in to comment.