-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
102 Adds slice for RTK (WIP with console errors)
- Loading branch information
1 parent
f67434e
commit ccd10cc
Showing
5 changed files
with
86 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './customApis'; | ||
export * from './orchestratorComponentOverride'; | ||
export * from './toastMessages'; | ||
export * from './orchestratorConfig'; | ||
export * from './customApis'; |
21 changes: 21 additions & 0 deletions
21
packages/orchestrator-ui-components/src/rtk/slices/orchestratorComponentOverride.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Slice, createSlice } from '@reduxjs/toolkit'; | ||
|
||
import { ValueOverrideConfiguration } from '@/contexts'; | ||
|
||
export type OrchestratorComponentOverride = { | ||
subscriptionDetail?: { | ||
valueOverrides?: ValueOverrideConfiguration; | ||
}; | ||
}; | ||
|
||
type OrchestratorComponentOverrideSlice = Slice<OrchestratorComponentOverride>; | ||
|
||
export const getOrchestratorComponentOverrideSlice = ( | ||
config: OrchestratorComponentOverride, | ||
): OrchestratorComponentOverrideSlice => { | ||
return createSlice({ | ||
name: 'orchestratorComponentOverride', | ||
initialState: config, | ||
reducers: {}, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters