Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
N00bG1rl committed Sep 27, 2023
1 parent fe96d32 commit 04ff79a
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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);
Expand Down

0 comments on commit 04ff79a

Please sign in to comment.