superdesk/superdesk-client-core

View on GitHub
scripts/core/ui/components/Icon2.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import {IPropsIcon} from 'superdesk-api';

export class Icon extends React.PureComponent<IPropsIcon> {
    render() {
        return (
            <span style={{display: 'flex', justifyContent: 'center', alignItems: 'center'}}>
                <i
                    style={{fontSize: (this.props.size || 16) + 'px', lineHeight: '1', width: 'auto', height: 'auto'}}
                    className={this.props.className}
                />
            </span>
        );
    }
}