Skip to content

Commit

Permalink
Remove Meticulous and dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheppner committed Aug 23, 2024
1 parent 9df8165 commit 7aefa8c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 39 deletions.
27 changes: 3 additions & 24 deletions src/components/Search/CityResultList.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,12 @@ export function CityResultList({
loadFavouriteTours,
searchParams,
setSearchParams,
showNotFoundEntry = true,
onSelect,
idOne,
cityOne
}) {


const notFoundEntry = () => {
return (
<ListItem className={"not-found-entry"}>
<ListItemText
primary={
<Typography>
<Typography sx={{ fontWeight: 800 }}>
Deinen nahegelegenen Bahnhof nicht gefunden?
</Typography>
<Typography sx={{ maxWidth: "700px" }}>
Wir erweitern laufend die verfügbaren Ausgangspunkte und die
Touren.
</Typography>
</Typography>
}
/>
</ListItem>
);
};

const writeCityToLocalStorage = (city) => {
localStorage.setItem("city", city);
};
Expand Down Expand Up @@ -130,14 +109,14 @@ export function CityResultList({
);
})}
/*
// Either this get's a proper translation, or we leave it out
{!cities.length && (
<ListItem>
<ListItemText secondary={"Did not find anything?"} />
</ListItem>
)}

{/* {renderLinksBasedOnHost()} */}
{!!showNotFoundEntry && notFoundEntry()}
*/
</List>
);
}
1 change: 0 additions & 1 deletion src/components/Search/FullScreenCityInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ function FullScreenCityInput({
setOpenCitySearch={setOpenCitySearch}
searchParams={searchParams}
setSearchParams={setSearchParams}
showNotFoundEntry={false}
onSelect={onSelect}
idOne={idOne}
cityOne={cityOne}
Expand Down
6 changes: 0 additions & 6 deletions src/components/TimeLine/ItineraryTourTimeLineContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,6 @@ if(emptyConnArray){
</Link>
);
})}

{/* {!cities || (!!cities && cities.length === 0) && (
<ListItem key={randomKey(7)}>
<ListItemText secondary={"Did not find anything?"} />
</ListItem>
)} */}
</List>
</Box>
)}
Expand Down
8 changes: 0 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,9 @@ import { Helmet } from 'react-helmet';
import { Provider } from 'react-redux';
import "./translations/i18n";
import {BrowserRouter} from "react-router-dom";
import { tryLoadAndStartRecorder } from '@alwaysmeticulous/recorder-loader'

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;

if (process.env.NODE_ENV === 'production' && window.location.href.indexOf("www.zuugle.") >= 0) {
tryLoadAndStartRecorder({
projectId: '0HjVPphxK3XDsQ4ka8QMwfxlMW204RtKu2bL92KO',
isProduction: false,
});
}

export const store = createStore(rootReducer, composeEnhancers(
applyMiddleware(thunk)
));
Expand Down

0 comments on commit 7aefa8c

Please sign in to comment.