Remove some uses of FC
This commit is contained in:
committed by
Fredrik Adelöw
parent
0e9b562223
commit
65d3e99840
@@ -13,12 +13,12 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import React, { FC } from 'react';
|
||||
import React from 'react';
|
||||
import { ContentHeader, SupportButton } from '@backstage/core';
|
||||
import { Box, Typography } from '@material-ui/core';
|
||||
|
||||
export type Props = { title?: string };
|
||||
export const PluginHeader: FC<Props> = ({ title = 'Jenkins' }) => {
|
||||
export const PluginHeader = ({ title = 'Jenkins' }) => {
|
||||
return (
|
||||
<ContentHeader
|
||||
title={title}
|
||||
|
||||
@@ -99,7 +99,7 @@ const Page = () => (
|
||||
</Layout>
|
||||
);
|
||||
|
||||
const BuildWithStepsView: FC<{}> = () => {
|
||||
const BuildWithStepsView = () => {
|
||||
const [searchParams] = useSearchParams();
|
||||
const buildPath = searchParams.get('url') || '';
|
||||
const classes = useStyles();
|
||||
|
||||
Reference in New Issue
Block a user