Skip to content

Commit ee86f1c

Browse files
committed
move some components to common
1 parent f698b59 commit ee86f1c

File tree

11 files changed

+12
-8
lines changed

11 files changed

+12
-8
lines changed

dist/tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"root":["../src/app.js","../src/app.test.js","../src/custom.d.ts","../src/i18n.js","../src/index.js","../src/reportwebvitals.js","../src/setuptests.js","../src/assets/svgiconfilter.tsx","../src/assets/svgiconsettings.tsx","../src/components/atoms/buttonshowfiltermodal.tsx","../src/components/atoms/buttontoggle.tsx","../src/components/atoms/checkbox.tsx","../src/components/atoms/errorboundary.tsx","../src/components/atoms/icon.tsx","../src/components/atoms/loader.tsx","../src/components/atoms/myselect.tsx","../src/components/atoms/select.tsx","../src/components/atoms/selectgroupby.tsx","../src/components/atoms/selectgroupby2.tsx","../src/components/atoms/smallcard2.tsx","../src/components/chart/cardchartbygroup1.tsx","../src/components/chart/cardchartgrpby2.tsx","../src/components/chart/cardchartyears.tsx","../src/components/chart/chartbar.tsx","../src/components/chart/configchart.tsx","../src/components/chart/groupbygraphspanel.tsx","../src/components/detailstable/accidentstable.tsx","../src/components/detailstable/detailstablefilter.tsx","../src/components/filter/cardfilterwhat.tsx","../src/components/filter/cardfilterwhatroad.tsx","../src/components/filter/cardfilterwhatvehicle.tsx","../src/components/filter/cardfilterwhen.tsx","../src/components/filter/cardfilterwhere.tsx","../src/components/filter/cardfilterwho.tsx","../src/components/filter/cityselector.tsx","../src/components/filter/configfiltermodal.tsx","../src/components/filter/customtoggle.tsx","../src/components/filter/filterform.tsx","../src/components/filter/roadnameselector.tsx","../src/components/filter/roadsegmentselector.tsx","../src/components/filter/streetselector.tsx","../src/components/grouptable/cardgrouptable.tsx","../src/components/grouptable/cardgrouptables2.tsx","../src/components/grouptable/cardgrouptablesyears.tsx","../src/components/grouptable/cardgrouptablesyears2.tsx","../src/components/grouptable/groupbytable.tsx","../src/components/grouptable/groupbytablespanel.tsx","../src/components/map/accidentheatlayer.tsx","../src/components/map/accidentpopup.tsx","../src/components/map/accidentsmap.tsx","../src/components/map/accidentsmarker.tsx","../src/components/map/accidentsmarkers.tsx","../src/components/map/clusteredmarkers.tsx","../src/components/map/mapcenterupdater.tsx","../src/components/map/markersvg.tsx","../src/components/map/selectmapmarkerstype.tsx","../src/components/map/selectmarkerscolortype.tsx","../src/components/map/selectmarkersicontype.tsx","../src/components/map/legend/legend.jsx","../src/components/map/legend/legendwarpper.tsx","../src/components/map/markers/iconbike.tsx","../src/components/map/markers/iconbus.tsx","../src/components/map/markers/iconcar.tsx","../src/components/map/markers/iconempty.tsx","../src/components/map/markers/iconmotorcycle.tsx","../src/components/map/markers/iconquestion.tsx","../src/components/map/markers/iconscooter.tsx","../src/components/map/markers/icontruck.tsx","../src/components/map/markers/iconvehicle.tsx","../src/components/map/markers/iconwalk.tsx","../src/components/map/markers/pinmoto.jsx","../src/components/map/markers/index.ts","../src/components/molecules/groupcheckbox.tsx","../src/components/molecules/infopanel.tsx","../src/components/molecules/languageselector.tsx","../src/components/molecules/navigationlist.tsx","../src/components/molecules/index.ts","../src/components/organisms/configmodal.tsx","../src/components/organisms/drawer.tsx","../src/components/organisms/myimagegallery.tsx","../src/components/templates/citytemplate.tsx","../src/components/templates/footer.tsx","../src/components/templates/hometemplate.tsx","../src/components/templates/tabstemplate.tsx","../src/components/templates/withsidebartemplate.tsx","../src/components/templates/header/headr.tsx","../src/components/types/iiconprops.ts","../src/components/types/index.ts","../src/hooks/myusememo.ts","../src/hooks/queryhooks.ts","../src/hooks/useaccidentmarkers.ts","../src/pages/aboutpage.tsx","../src/pages/citypage.tsx","../src/pages/homepage.tsx","../src/pages/mappage.tsx","../src/pages/mapwithclusters.tsx","../src/services/accidentservice.ts","../src/services/cityservice.ts","../src/services/dexieinjuredservice.js","../src/services/imageservice.ts","../src/services/localstorage.service.ts","../src/services/logger.js","../src/services/maputils.ts","../src/services/__mocks__/accidentservice.ts","../src/stores/casualty.ts","../src/stores/groupby2val.tsx","../src/stores/groupmap.ts","../src/stores/mapstore.ts","../src/stores/rootstore.ts","../src/stores/uistore.ts","../src/stores/storeconfig.ts","../src/stores/filter/columnfilter.ts","../src/stores/filter/columnfilterarray.ts","../src/stores/filter/columnfiltercheckboxlist.ts","../src/stores/filter/columnfiltercombo.ts","../src/stores/filter/filterchecker.ts","../src/stores/filter/filterstore.ts","../src/stores/filter/groupby.ts","../src/stores/filter/groupby2.ts","../src/stores/image/imageentity.tsx","../src/stores/image/imagestore.ts","../src/types/accident.ts","../src/types/bboxtype.ts","../src/types/casualtylean.ts","../src/types/citykeyval.ts","../src/types/injuredperson.ts","../src/types/mapmarkerstype.ts","../src/types/markerdata.ts","../src/types/index.ts","../src/utils/filterutils.ts","../src/utils/exportcsv.ts","../src/utils/globalenvs.ts","../src/utils/groupbyutils.ts","../src/utils/maputils.ts","../src/utils/querystringutils.ts"],"version":"5.7.2"}
1+
{"root":["../src/app.js","../src/app.test.js","../src/custom.d.ts","../src/i18n.js","../src/index.js","../src/reportwebvitals.js","../src/setuptests.js","../src/assets/svgiconfilter.tsx","../src/assets/svgiconsettings.tsx","../src/components/atoms/buttonshowfiltermodal.tsx","../src/components/atoms/buttontoggle.tsx","../src/components/atoms/checkbox.tsx","../src/components/atoms/errorboundary.tsx","../src/components/atoms/icon.tsx","../src/components/common/laoder/loader.tsx","../src/components/atoms/myselect.tsx","../src/components/atoms/select.tsx","../src/components/atoms/selectgroupby.tsx","../src/components/atoms/selectgroupby2.tsx","../src/components/atoms/smallcard2.tsx","../src/components/chart/cardchartbygroup1.tsx","../src/components/chart/cardchartgrpby2.tsx","../src/components/chart/cardchartyears.tsx","../src/components/chart/chartbar.tsx","../src/components/chart/configchart.tsx","../src/components/chart/groupbygraphspanel.tsx","../src/components/detailstable/accidentstable.tsx","../src/components/detailstable/detailstablefilter.tsx","../src/components/filter/cardfilterwhat.tsx","../src/components/filter/cardfilterwhatroad.tsx","../src/components/filter/cardfilterwhatvehicle.tsx","../src/components/filter/cardfilterwhen.tsx","../src/components/filter/cardfilterwhere.tsx","../src/components/filter/cardfilterwho.tsx","../src/components/filter/cityselector.tsx","../src/components/filter/configfiltermodal.tsx","../src/components/filter/customtoggle.tsx","../src/components/filter/filterform.tsx","../src/components/filter/roadnameselector.tsx","../src/components/filter/roadsegmentselector.tsx","../src/components/filter/streetselector.tsx","../src/components/grouptable/cardgrouptable.tsx","../src/components/grouptable/cardgrouptables2.tsx","../src/components/grouptable/cardgrouptablesyears.tsx","../src/components/grouptable/cardgrouptablesyears2.tsx","../src/components/grouptable/groupbytable.tsx","../src/components/grouptable/groupbytablespanel.tsx","../src/components/map/accidentheatlayer.tsx","../src/components/map/accidentpopup.tsx","../src/components/map/accidentsmap.tsx","../src/components/map/accidentsmarker.tsx","../src/components/map/accidentsmarkers.tsx","../src/components/map/clusteredmarkers.tsx","../src/components/map/mapcenterupdater.tsx","../src/components/map/markersvg.tsx","../src/components/map/selectmapmarkerstype.tsx","../src/components/map/selectmarkerscolortype.tsx","../src/components/map/selectmarkersicontype.tsx","../src/components/map/legend/legend.jsx","../src/components/map/legend/legendwarpper.tsx","../src/components/map/markers/iconbike.tsx","../src/components/map/markers/iconbus.tsx","../src/components/map/markers/iconcar.tsx","../src/components/map/markers/iconempty.tsx","../src/components/map/markers/iconmotorcycle.tsx","../src/components/map/markers/iconquestion.tsx","../src/components/map/markers/iconscooter.tsx","../src/components/map/markers/icontruck.tsx","../src/components/map/markers/iconvehicle.tsx","../src/components/map/markers/iconwalk.tsx","../src/components/map/markers/pinmoto.jsx","../src/components/map/markers/index.ts","../src/components/molecules/groupcheckbox.tsx","../src/components/molecules/infopanel.tsx","../src/components/molecules/languageselector.tsx","../src/components/molecules/navigationlist.tsx","../src/components/molecules/index.ts","../src/components/organisms/configmodal.tsx","../src/components/organisms/drawer.tsx","../src/components/organisms/myimagegallery.tsx","../src/components/templates/citytemplate.tsx","../src/components/templates/footer.tsx","../src/components/templates/hometemplate.tsx","../src/components/templates/tabstemplate.tsx","../src/components/templates/withsidebartemplate.tsx","../src/components/templates/header/headr.tsx","../src/components/types/iiconprops.ts","../src/components/types/index.ts","../src/hooks/myusememo.ts","../src/hooks/queryhooks.ts","../src/hooks/useaccidentmarkers.ts","../src/pages/aboutpage.tsx","../src/pages/citypage.tsx","../src/pages/homepage.tsx","../src/pages/mappage.tsx","../src/pages/mapwithclusters.tsx","../src/services/accidentservice.ts","../src/services/cityservice.ts","../src/services/dexieinjuredservice.js","../src/services/imageservice.ts","../src/services/localstorage.service.ts","../src/services/logger.js","../src/services/maputils.ts","../src/services/__mocks__/accidentservice.ts","../src/stores/casualty.ts","../src/stores/groupby2val.tsx","../src/stores/groupmap.ts","../src/stores/mapstore.ts","../src/stores/rootstore.ts","../src/stores/uistore.ts","../src/stores/storeconfig.ts","../src/stores/filter/columnfilter.ts","../src/stores/filter/columnfilterarray.ts","../src/stores/filter/columnfiltercheckboxlist.ts","../src/stores/filter/columnfiltercombo.ts","../src/stores/filter/filterchecker.ts","../src/stores/filter/filterstore.ts","../src/stores/filter/groupby.ts","../src/stores/filter/groupby2.ts","../src/stores/image/imageentity.tsx","../src/stores/image/imagestore.ts","../src/types/accident.ts","../src/types/bboxtype.ts","../src/types/casualtylean.ts","../src/types/citykeyval.ts","../src/types/injuredperson.ts","../src/types/mapmarkerstype.ts","../src/types/markerdata.ts","../src/types/index.ts","../src/utils/filterutils.ts","../src/utils/exportcsv.ts","../src/utils/globalenvs.ts","../src/utils/groupbyutils.ts","../src/utils/maputils.ts","../src/utils/querystringutils.ts"],"version":"5.7.2"}

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import MapWithClusters from './pages/MapWithClusters';
1212
import Footer from './components/templates/footer/Footer';
1313
// import Card from 'react-bootstrap/Card';
1414
// import MapPage from './pages/MapPage';
15-
//import Loader from './components/atoms/Loader';
15+
//import {Loader} from './components/common';
1616
import './i18n';
1717
import './App.css';
1818

src/components/atoms/Icon.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
22
import Icons from '../../assets/transport_icons/all_icons.svg';
3-
//import { ReactComponent as Icons } from '../../assets/transport_icons/all_icons.svg';
43

54
interface IProps {
65
name:string,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as ButtonToggle } from './ButtonToggle';

src/components/common/ErrorBoundary/ErrorBoundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { ReactNode } from 'react';
2-
import logger from '../../services/logger';
2+
import logger from '../../../services/logger';
33

44
interface ErrorBoundaryProps {
55
children: ReactNode;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as ErrorBoundary } from './ErrorBoundary';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import Spinner from 'react-bootstrap/Spinner'
3-
import '../../styles/loader.css'
3+
import '../../../styles/loader.css'
44
const Loader: React.FC<any> = () => <div className="loader-con"> <Spinner animation="border" variant="info" /></div>
55

66
export default Loader
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as Loader } from './Loader';

src/components/common/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export {ButtonToggle} from './ButtonToggle';
2+
export {ErrorBoundary} from './ErrorBoundary';
3+
export {Loader} from './Loader';

src/components/organisms/MyImageGallery.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Row from 'react-bootstrap/Row';
66
import Col from 'react-bootstrap/Col';
77
import ImageGallery from "react-image-gallery";
88
import 'react-image-gallery/styles/css/image-gallery.css';
9-
import ButtonToggle from '../atoms/ButtonToggle';
9+
import {ButtonToggle} from '../common';
1010
import Select from '../atoms/Select';
1111
import { useStore } from '../../stores/storeConfig';
1212
import SmallCard2 from '../atoms/SmallCard2';

0 commit comments

Comments
 (0)