test VitePWA new config

This commit is contained in:
Romulus21
2024-02-25 14:54:46 +01:00
parent ffc4bb0678
commit 05644918cc
5 changed files with 96 additions and 47 deletions

View File

@@ -47,6 +47,7 @@ const RainfallGraph: FC<RainfallGraphProps> = ({width, height, data, start_date,
svg.append("g")
.attr("transform", "translate(0," + gHeight + ")")
.call(d3.axisBottom(x)
.ticks(8)
.tickFormat(
// @ts-ignore
d3.timeFormat("%d/%m/%Y")

View File

@@ -31,6 +31,9 @@ export const AuthUserProvider = ({children}: PropsWithChildren) => {
// @ts-ignore
if (e.response.status === 401) {
console.info('no user login')
if (window.location.pathname !== '/connexion') {
window.location.href = '/connexion'
}
}
} finally {
setLoadingAuthUser(false)

View File

@@ -41,7 +41,7 @@ const Rainfall = () => {
</div>
{errorLabel()}
<form className="flex mb-2 mx-5 gap-2">
<form className="flex mb-2 mx-5 gap-2 flex-wrap">
<Field name="start_date"
type="date"
value={graphDetails.start_date}