Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
update endpoint from deployment to integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
kahboom committed Jan 7, 2022
1 parent 612aa06 commit 7abdd7d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/pages/Dashboard.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
import { Catalog } from '../components/Catalog';
import { Visualization } from '../components/Visualization';
import { YAMLEditor } from '../components/YAMLEditor';
import YAML from '../stories/data/yaml';
import { IStepProps, IViewData, IVizStepProps } from '../types';
import request from '../utils/request';
import usePrevious from '../utils/usePrevious';
import './Dashboard.css';
import {
Button,
Drawer,
Expand All @@ -7,17 +15,9 @@ import {
GridItem,
Tooltip,
} from '@patternfly/react-core';
import { Catalog } from '../components/Catalog';
import { Visualization } from '../components/Visualization';
import { YAMLEditor } from '../components/YAMLEditor';
import usePrevious from '../utils/usePrevious';
import request from '../utils/request';
import { CodeIcon, PlusCircleIcon } from '@patternfly/react-icons';
import { useEffect, useState } from 'react';
import { IStepProps, IViewData, IVizStepProps } from '../types';
import YAML from '../stories/data/yaml';
import { v4 as uuidv4 } from 'uuid';
import './Dashboard.css';
import { CodeIcon, PlusCircleIcon } from '@patternfly/react-icons';

const Dashboard = () => {
// If the catalog data won't be changing, consider removing this state
Expand Down Expand Up @@ -113,7 +113,7 @@ const Dashboard = () => {

try {
const resp = await request.post({
endpoint: '/deployment/yaml',
endpoint: '/integrations/customResource',
contentType: 'application/json',
body: { name: 'Updated integration', steps: newSteps },
});
Expand Down

0 comments on commit 7abdd7d

Please sign in to comment.