Use Prettier for ESLint formatting TypeScript (#23631)
This commit is contained in:
		@@ -7,6 +7,15 @@ type Props = {
 | 
			
		||||
  fixedWidth?: boolean;
 | 
			
		||||
  children?: never;
 | 
			
		||||
  [key: string]: any;
 | 
			
		||||
}
 | 
			
		||||
export const Icon: React.FC<Props> = ({ id, className, fixedWidth, ...other }) =>
 | 
			
		||||
  <i className={classNames('fa', `fa-${id}`, className, { 'fa-fw': fixedWidth })} {...other} />;
 | 
			
		||||
};
 | 
			
		||||
export const Icon: React.FC<Props> = ({
 | 
			
		||||
  id,
 | 
			
		||||
  className,
 | 
			
		||||
  fixedWidth,
 | 
			
		||||
  ...other
 | 
			
		||||
}) => (
 | 
			
		||||
  <i
 | 
			
		||||
    className={classNames('fa', `fa-${id}`, className, { 'fa-fw': fixedWidth })}
 | 
			
		||||
    {...other}
 | 
			
		||||
  />
 | 
			
		||||
);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user