remove React's FC type from codebase (#3527)
* WIP-packages: remove React's FC type from codebase * remove FC from other directories * fix build failures * add types to required packages
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import React, { FC } from 'react';
|
||||
import React from 'react';
|
||||
import { SentryIssue } from '../../api';
|
||||
import { Link, Typography } from '@material-ui/core';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
@@ -42,9 +42,7 @@ const useStyles = makeStyles<BackstageTheme>(theme => ({
|
||||
},
|
||||
}));
|
||||
|
||||
export const ErrorCell: FC<{ sentryIssue: SentryIssue }> = ({
|
||||
sentryIssue,
|
||||
}) => {
|
||||
export const ErrorCell = ({ sentryIssue }: { sentryIssue: SentryIssue }) => {
|
||||
const classes = useStyles();
|
||||
return (
|
||||
<div className={classes.root}>
|
||||
|
||||
@@ -14,13 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import React, { FC } from 'react';
|
||||
import React from 'react';
|
||||
import { SentryIssue } from '../../api';
|
||||
import { Sparklines, SparklinesBars } from 'react-sparklines';
|
||||
|
||||
export const ErrorGraph: FC<{ sentryIssue: SentryIssue }> = ({
|
||||
sentryIssue,
|
||||
}) => {
|
||||
export const ErrorGraph = ({ sentryIssue }: { sentryIssue: SentryIssue }) => {
|
||||
const data =
|
||||
'12h' in sentryIssue.stats
|
||||
? sentryIssue.stats['12h']
|
||||
|
||||
Reference in New Issue
Block a user