Skip to content

Commit

Permalink
Merge pull request #5178 from HSLdevcom/embedded
Browse files Browse the repository at this point in the history
Embedded search cleanup
  • Loading branch information
partisaani authored Nov 29, 2024
2 parents e208097 + ad0520d commit 373966c
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion app/component/EmbeddedSearch/index.js

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { matchShape } from 'found';
import LazilyLoad, { importLazy } from './LazilyLoad';
import LazilyLoad, { importLazy } from '../LazilyLoad';

const modules = {
EmbeddedSearch: () => importLazy(import('./EmbeddedSearch')),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import React, { useState, useRef } from 'react';
import { FormattedMessage, intlShape } from 'react-intl';
import connectToStores from 'fluxible-addons-react/connectToStores';
import DTAutosuggest from '@digitransit-component/digitransit-component-autosuggest';
import { configShape } from '../util/shapes';
import { configShape } from '../../util/shapes';
import EmbeddedSearch from './EmbeddedSearch';
import { EMBEDDED_SEARCH_PATH } from '../util/path';
import { getRefPoint } from '../util/apiUtils';
import withBreakpoint from '../util/withBreakpoint';
import { EMBEDDED_SEARCH_PATH } from '../../util/path';
import { getRefPoint } from '../../util/apiUtils';
import withBreakpoint from '../../util/withBreakpoint';
import {
withSearchContext,
getLocationSearchTargets,
} from './WithSearchContext';
import { isBrowser } from '../util/browser';
} from '../WithSearchContext';
import { isBrowser } from '../../util/browser';

const LocationSearch = withSearchContext(DTAutosuggest, true);

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,15 +385,15 @@ export default config => {
path={config.URL.EMBEDDED_SEARCH_GENERATION}
getComponent={() =>
import(
/* webpackChunkName: "embedded-search-generator" */ './component/EmbeddedSearchGenerator'
/* webpackChunkName: "embedded-search-generator" */ './component/embedded/EmbeddedSearchGenerator'
).then(getDefault)
}
/>
<Route
path={EMBEDDED_SEARCH_PATH}
getComponent={() =>
import(
/* webpackChunkName: "embedded-search" */ './component/EmbeddedSearchContainer'
/* webpackChunkName: "embedded-search" */ './component/embedded/EmbeddedSearchContainer'
).then(getDefault)
}
topBarOptions={{ hidden: true }}
Expand Down
4 changes: 2 additions & 2 deletions sass/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ $body-font-weight: $font-weight-medium;
@import '../app/component/zone-icon';
@import '../app/component/date-select';
@import '../app/component/routepage/route-schedule-dropdown';
@import '../app/component/embedded-search';
@import '../app/component/embedded-search-generator';
@import '../app/component/embedded/embedded-search';
@import '../app/component/embedded/embedded-search-generator';
@import '../app/component/from-map-modal';
@import '../app/component/app-bar-hsl';
@import '../app/component/itinerary/itinerary';
Expand Down

0 comments on commit 373966c

Please sign in to comment.