Skip to content

Commit

Permalink
♻️ ApiValidatedField example, default imports
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed Jan 4, 2024
1 parent 47abe42 commit 158fc02
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 55 deletions.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { lazy, Suspense, useMemo } from 'react'
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom'
//import { Test as ComponentTest } from './components/TextLoader'
import { Example as ComponentTest } from './components/IBANField.example'
import { Example as ComponentTest } from './components/ApiValidatedField.example'

import {
createTheme,
Expand Down
4 changes: 3 additions & 1 deletion src/components/ApiValidatedField.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,6 @@ export function ApiValidatedField({
}} />
</>
);
}
}

export default ApiValidatedField
4 changes: 3 additions & 1 deletion src/components/CadastralReferenceField.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { checkCadastralReference } from '../services/api';
import MapIcon from '@material-ui/icons/Map';
import { useTranslation } from 'react-i18next';
import { ApiValidatedField } from './ApiValidatedField';
import ApiValidatedField from './ApiValidatedField';

export function CadastralReferenceField(props) {
const { t } = useTranslation();
Expand Down Expand Up @@ -39,3 +39,5 @@ export function CadastralReferenceField(props) {
onChange={onChange} />
);
}

export default CadastralReferenceField
51 changes: 0 additions & 51 deletions src/components/IBANField.example.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/IBANField.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { checkIban } from '../services/api'
import AccountBalanceOutlinedIcon from '@material-ui/icons/AccountBalanceOutlined'
import { useTranslation } from 'react-i18next'
import { ApiValidatedField } from './ApiValidatedField'
import ApiValidatedField from './ApiValidatedField'

export function IBANField(props) {
const { t } = useTranslation()
Expand Down

0 comments on commit 158fc02

Please sign in to comment.