Skip to content

Commit d530a88

Browse files
committed
update
1 parent 3719dae commit d530a88

File tree

7 files changed

+19
-6
lines changed

7 files changed

+19
-6
lines changed

ui/src/components/resources/ResourceForm.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React, { useState, useEffect } from 'react';
33
import { ArrowLeft, Save, Trash2 } from 'lucide-react';
44
import { Button } from "./components/ui/button";
5-
// import { useToast } from './hooks/use-toast';
5+
import { useToast } from '@/hooks/use-toast';
66
import { LoadingSpinner, ErrorMessage, ConfirmationModal } from '../common';
77
import ResourceConfig from './ResourceConfig';
88

ui/src/contexts/DataSourceContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React, { createContext, useContext, useState, useCallback, useEffect } from 'react';
33
import { DataSourceApi } from '../services/api';
44
import { useApp } from './AppContext';
5-
// import { useToast } from './hooks/use-toast';
5+
import { useToast } from '@/hooks/use-toast';
66

77
// Create the context
88
const DataSourceContext = createContext();

ui/src/contexts/MiddlewareContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React, { createContext, useContext, useState, useCallback } from 'react';
33
import { MiddlewareApi } from '../services/api';
44
import { useDataSource } from './DataSourceContext';
5-
// import { useToast } from './hooks/use-toast';
5+
import { useToast } from '@/hooks/use-toast';
66

77
// Create the context
88
const MiddlewareContext = createContext();

ui/src/contexts/PluginContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React, { createContext, useContext, useState, useCallback } from 'react';
33
import { PluginApi } from '../services/api';
44
import { useDataSource } from './DataSourceContext';
5-
// import { useToast } from './hooks/use-toast';
5+
import { useToast } from '@/hooks/use-toast';
66

77
// Create the context
88
const PluginContext = createContext();

ui/src/contexts/ResourceContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React, { createContext, useContext, useState, useCallback } from 'react';
33
import { ResourceApi } from '../services/api';
44
import { useDataSource } from './DataSourceContext';
5-
// import { useToast } from './hooks/use-toast';
5+
import { useToast } from '@/hooks/use-toast';
66

77
// Create the context
88
const ResourceContext = createContext();

ui/src/contexts/ServiceContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React, { createContext, useState, useCallback } from 'react';
33
import { ServiceApi } from '../services/api';
44
import { useDataSource } from './DataSourceContext';
5-
// import { useToast } from './hooks/use-toast';
5+
import { useToast } from '@/hooks/use-toast';
66

77
// Create the context
88
export const ServiceContext = createContext();

ui/src/jsconfig.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": "src",
4+
"paths": {
5+
"@/*": [
6+
"*"
7+
]
8+
}
9+
},
10+
"include": [
11+
"src"
12+
]
13+
}

0 commit comments

Comments
 (0)