Skip to content

Commit

Permalink
102 Moves the ValueOverrideFunction to the rtk slice
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardovdheijden committed Mar 28, 2024
1 parent 170d1b9 commit 4b1cd5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React, { ReactNode } from 'react';
import React from 'react';

import { ValueOverrideFunction } from '@/rtk';
import { useAppSelector } from '@/rtk/hooks';
import { FieldValue } from '@/types';

export type ValueOverrideFunction = (fieldValue: FieldValue) => ReactNode;

export const useSubscriptionDetailValueOverride = () => {
const valueOverrideConfiguration = useAppSelector(
(state) =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { ReactNode } from 'react';

import { Slice, createSlice } from '@reduxjs/toolkit';

import { ValueOverrideFunction } from '@/components/WfoSubscription/overrides/useSubscriptionDetailValueOverride';
import { FieldValue } from '@/types';

export type ValueOverrideFunction = (fieldValue: FieldValue) => ReactNode;
export type ValueOverrideConfiguration = Record<string, ValueOverrideFunction>;

export type OrchestratorComponentOverride = {
Expand Down

0 comments on commit 4b1cd5b

Please sign in to comment.