Skip to content

Commit

Permalink
#375 Correct fieldRenderer directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeev-k-tomy committed Nov 8, 2024
1 parent 8768af1 commit 07c92aa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { addressFieldRenderer } from '../../../fieldRenderers/renderers';

export default function useAddressFieldRenderer(addressFormId) {
const addressTypeConfig = getAddressConfigByFormId(addressFormId);
console.log({ addressTypeConfig });

const addressFields = _objToArray(addressTypeConfig)
.sort((field1, field2) => field1.sortOrder - field2.sortOrder)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';

import { ConfigSelectInput } from '../../../components/common/Form';
import useAppContext from '../../../hook/useAppContext';
import { prepareCountryOptions } from '../../../components/address/utility';
import { fieldConfigShape, formikDataShape } from '../../../utils/propTypes';
import { ConfigSelectInput } from '../../components/common/Form';
import useAppContext from '../../hook/useAppContext';
import { prepareCountryOptions } from '../../components/address/utility';
import { fieldConfigShape, formikDataShape } from '../../utils/propTypes';

function CountryRenderer({ formikData, config }) {
const { countryList } = useAppContext();
Expand Down
4 changes: 1 addition & 3 deletions src/reactapp/src/fieldRenderers/customRenderers.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import CountryRenderer, {
countryRendererCondition,
} from './components/countryRenderer';
import RegionRenderer, { regionRendererCondition } from './regionRenderer';
import CountryRenderer, { countryRendererCondition } from './countryRenderer';

/**
* Holds custom renderers.
Expand Down

0 comments on commit 07c92aa

Please sign in to comment.