You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by li...@apache.org on 2022/11/02 14:57:53 UTC
[incubator-devlake] branch main updated: refactor: update integration context initial props (#3626)
This is an automated email from the ASF dual-hosted git repository.
likyh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 976ff8c6 refactor: update integration context initial props (#3626)
976ff8c6 is described below
commit 976ff8c60da96a067f5830fdebf6d787b905113f
Author: Julien Chinapen <ju...@merico.dev>
AuthorDate: Wed Nov 2 10:57:47 2022 -0400
refactor: update integration context initial props (#3626)
* refactor: fix casing on initial context prop shape
* fix: restore original contextValue
* refactor: use correct aliasing
---
config-ui/src/store/integrations-context.jsx | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/config-ui/src/store/integrations-context.jsx b/config-ui/src/store/integrations-context.jsx
index 37b0a133..041876c2 100644
--- a/config-ui/src/store/integrations-context.jsx
+++ b/config-ui/src/store/integrations-context.jsx
@@ -19,9 +19,9 @@ import React, { useState } from 'react'
import useIntegrations from '@/hooks/useIntegrations'
const IntegrationsContext = React.createContext({
- registry: {},
- plugins: {},
- integrations: {},
+ Registry: {},
+ Plugins: {},
+ Integrations: {},
activeProvider: null,
Providers: {},
ProviderIcons: {},
@@ -34,9 +34,9 @@ const IntegrationsContext = React.createContext({
export const IntegrationsContextProvider = (props) => {
const {
- registry: Registry,
- plugins: Plugins,
- integrations: Integrations,
+ registry,
+ plugins,
+ integrations,
activeProvider,
Providers,
ProviderLabels,
@@ -49,9 +49,9 @@ export const IntegrationsContextProvider = (props) => {
} = useIntegrations()
const contextValue = {
- Registry,
- Plugins,
- Integrations,
+ Registry: registry,
+ Plugins: plugins,
+ Integrations: integrations,
activeProvider,
Providers,
ProviderLabels,