Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DovMa committed Nov 24, 2023
1 parent f07773f commit 06eda76
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 8 additions & 0 deletions manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,12 @@ export const manifestForPlugIn = {
start_url: '/',
orientation: 'portrait',
},
workbox: {
runtimeCaching: [
{
urlPattern: /\.(png|jpg|jpeg|svg|gif)$/,
handler: 'CacheFirst',
},
],
},
};
2 changes: 0 additions & 2 deletions src/components/containers/FishingTools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ const FishingTools = ({
onSuccess: (value) => {
console.log('set location2', value);
setLocation(value);
// queryClient.setQueryData('location', value);
},
onError: () => {
handleAlert();
Expand All @@ -72,7 +71,6 @@ const FishingTools = ({
onSuccess: (data) => {
console.log('set location1', data);
if (data && !location) setLocation(data);
// dispatch(actions.setLocation(data));
},
retry: false,
},
Expand Down
3 changes: 1 addition & 2 deletions src/utils/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export const routes = [
regExp: new RegExp('^/zvejyba/mano/irankiai$'),
},
{
// title: 'Apytikslis svoris, kg',
slug: slugs.fishingToolCaughtFishes(Ids.TOOL_ID),
component: <CurrentFishing />,
back: true,
Expand All @@ -78,7 +77,7 @@ export const routes = [
slug: slugs.fishingWeight,
component: <CurrentFishing />,
back: true,
regExp: new RegExp('^/zvejyba/mono/svoris$'),
regExp: new RegExp('^/zvejyba/mano/svoris$'),
},
{
title: 'Žvejybos žurnalas',
Expand Down

0 comments on commit 06eda76

Please sign in to comment.