From 04ff79a9c6f7466a61bb3e50dedb71edc0381ea5 Mon Sep 17 00:00:00 2001 From: N00bG1rl <403helen@gmail.com> Date: Wed, 27 Sep 2023 18:13:31 +0300 Subject: [PATCH] Remove unused code --- .../microservice/microservices/microservices.tsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Source/SelfService/Web/applications/microservice/microservices/microservices.tsx b/Source/SelfService/Web/applications/microservice/microservices/microservices.tsx index e65b9911a..584db2863 100644 --- a/Source/SelfService/Web/applications/microservice/microservices/microservices.tsx +++ b/Source/SelfService/Web/applications/microservice/microservices/microservices.tsx @@ -4,13 +4,12 @@ import React from 'react'; import { useHref, useNavigate } from 'react-router-dom'; -import { useSnackbar } from 'notistack'; import { MicroserviceObject } from '../../../apis/solutions/api'; import { HttpResponseApplication } from '../../../apis/solutions/application'; import { useReadable } from 'use-svelte-store'; -import { canEditMicroservices, microservices } from '../../stores/microservice'; +import { microservices } from '../../stores/microservice'; import { Typography } from '@mui/material'; @@ -25,16 +24,8 @@ export type MicroserviceProps = { export const Microservice = ({ application }: MicroserviceProps) => { const navigate = useNavigate(); - const { enqueueSnackbar } = useSnackbar(); const $microservices = useReadable(microservices) as MicroserviceObject[]; - // TODO ENV: How to handle this? - //const canEdit = canEditMicroservices(application.environments, environment); - // if (!canEdit) { - // enqueueSnackbar('Currently disabled. Please reach out via freshdesk or teams.', { variant: 'error' }); - // return; - // } - // TODO: Make this a button with 'href'. const href = `/microservices/application/${application.id}/create`; const createMicroserviceHref = useHref(href);