-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade administration frontend dependencies #493
Conversation
I also had to keep graphql on version 15.8 because the "apollo" tooling package is not yet compatible with the new version |
<Route path={"/"} element={<div | ||
style={{display: 'flex', alignItems: 'center', flexDirection: 'column'}}> | ||
<H3>Wählen Sie eine Aktion aus:</H3> | ||
<NavLink to={"/applications"}><Button style={{ marginBottom: '10px'}} icon="form" text="Eingehende Anträge"/></NavLink> | ||
<NavLink to={"/eak-generation"}><Button icon="people" text="Karten erstellen"/></NavLink> | ||
</div> | ||
</Route> | ||
<Route exact path={"/applications"}> | ||
<ApplicationsController token={authData.token}/> | ||
</Route> | ||
<Route path={"/eak-generation"}> | ||
<GenerationController/> | ||
</Route> | ||
<NavLink to={"/applications"}><Button style={{marginBottom: '10px'}} | ||
icon="form" | ||
text="Eingehende Anträge"/></NavLink> | ||
<NavLink to={"/eak-generation"}><Button icon="people" | ||
text="Karten erstellen"/></NavLink> | ||
</div>}/> | ||
<Route path={"/applications"} | ||
element={<ApplicationsController token={authData.token}/>}/> | ||
<Route path={"/eak-generation"} element={<GenerationController/>}/> | ||
</Routes> | ||
</Main> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove the exact
flags for Route /applications
and /
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its no longer supported, should still work, at least from my tests
usePrompt("Falls Sie fortfahren, werden alle Eingaben verworfen.", cardCreationModels.length !== 0); | ||
|
||
return ( | ||
<> | ||
<Prompt message={"Falls Sie fortfahren, werden alle Eingaben verworfen."} | ||
when={cardCreationModels.length !== 0}/> | ||
<ButtonBar stickyTop={0}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are react routing libraries so shitty and unstable...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My words...
Loving Flutter/Angular for that.
Sadly I failed upgrading react-scripts. It still has rough edges and fixes are not released yet