Skip to content

Commit

Permalink
chore: upgrade packages, format files
Browse files Browse the repository at this point in the history
  • Loading branch information
thraizz committed Sep 1, 2024
1 parent 8e56032 commit 226ccd6
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 34 deletions.
Binary file modified bun.lockb
Binary file not shown.
58 changes: 29 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,43 +14,43 @@
"emulate:export": "npx firebase emulators:start --import firebaseEmulatorData --export-on-exit"
},
"dependencies": {
"@headlessui/react": "^1.7.18",
"@heroicons/react": "^2.1.1",
"@headlessui/react": "^1.7.19",
"@heroicons/react": "^2.1.5",
"@types/papaparse": "^5.3.14",
"ag-grid-react": "^31.1.0",
"autoprefixer": "^10.4.17",
"clsx": "^2.1.0",
"dayjs": "^1.11.11",
"firebase": "^10.8.0",
"jotai": "^2.8.0",
"ag-grid-react": "^31.3.4",
"autoprefixer": "^10.4.20",
"clsx": "^2.1.1",
"dayjs": "^1.11.13",
"firebase": "^10.13.1",
"jotai": "^2.9.3",
"papaparse": "^5.4.1",
"postcss": "^8.4.35",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.50.1",
"postcss": "^8.4.42",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.53.0",
"react-router": "^6.22.2",
"react-router-dom": "^6.22.2",
"react-router-dom": "^6.26.1",
"react-vega": "^7.6.0",
"vitest": "^1.3.1"
"vitest": "^1.6.0"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.7",
"@types/react": "^18.2.57",
"@types/react-dom": "^18.2.19",
"@tailwindcss/forms": "^0.5.8",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.56.0",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"jsdom": "^24.0.0",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.11",
"sass": "^1.71.0",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3",
"vite": "^5.1.3"
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.11",
"jsdom": "^24.1.3",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.5.14",
"sass": "^1.77.8",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4",
"vite": "^5.4.2"
}
}
2 changes: 1 addition & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export default {
tailwindcss: {},
autoprefixer: {},
},
}
};
5 changes: 4 additions & 1 deletion src/hooks/useGoals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ export const useGoals: () => Goal[] = () => {
averages.find((average) => average.name === "Driver")?.["Gesamtstrecke"];

const progress = current ? (current / partialGoal.target) * 100 : 0;
const progressText = `${(current ? (current / partialGoal.target) * 100 : 0).toFixed(2)}%`;
const progressText = `${(current
? (current / partialGoal.target) * 100
: 0
).toFixed(2)}%`;
const unit = golfSwingDataKeysInMeters.includes(partialGoal.metric)
? "m"
: golfSwingDataKeysInDegrees.includes(partialGoal.metric)
Expand Down
4 changes: 2 additions & 2 deletions src/provider/SessionContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ const SessionContext = createContext<SessionContextInterface>({
initialized: false,
isLoading: false,
sessions: {},
setSessions: () => { },
setSessions: () => {},
fetchSnapshot: () => Promise.resolve(undefined),
deleteSession: () => Promise.resolve(),
exportSessionsToJson: () => { },
exportSessionsToJson: () => {},
});

const SessionProvider: React.FC<PropsWithChildren> = ({ children }) => {
Expand Down
2 changes: 1 addition & 1 deletion src/provider/SettingsContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const SettingsContext = createContext<SettingsContextProps>({
useAboveAverageShots: false,
clubAverageStats: [] as any,
},
setSettings: () => { },
setSettings: () => {},
});

export const SettingsProvider = ({ children }: PropsWithChildren) => {
Expand Down

0 comments on commit 226ccd6

Please sign in to comment.