Skip to content

Commit

Permalink
Upgrade remix-themes
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Oct 8, 2024
1 parent 49aa421 commit 5406877
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 21 deletions.
2 changes: 0 additions & 2 deletions app/auth.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ if (
userAgent: "Haddock3WebApp",
},
async ({ profile }) => {
// TODO store users display name in database for more personal greeting
const primaryEmail = profile.emails[0].value;
const photo = profile.photos[0].value ?? undefined;
const userId = await oauthregister(primaryEmail, photo);
Expand Down Expand Up @@ -181,7 +180,6 @@ if (
});
const profile = await profileResponse.json();
const emails = await this.userEmails(profile.sub);
// TODO store Orcid id into database
return {
...profile,
emails,
Expand Down
9 changes: 0 additions & 9 deletions app/routes/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,6 @@ export default function Page() {
setTheme(t === "" ? null : (t as Theme));
}}
>
{/*
TODO system is not yet supported by remix-themes,
but issue by author was created on 2 feb 2024.
<div className="flex items-center space-x-2">
<RadioGroupItem value="" id="system" />
<Label htmlFor="system">System</Label>
</div>
*/}
<div className="flex items-center space-x-2">
<RadioGroupItem value={Theme.LIGHT} id={Theme.LIGHT} />
<Label htmlFor={Theme.LIGHT}>Light</Label>
Expand Down
6 changes: 5 additions & 1 deletion app/scenarios/MacroMoleculeSubForm.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ import { computeNeighbours, useNeighbourRadius } from "./useNeighbourRadius";
import { useSafeFile } from "./useSafeFile";
import { useTheme } from "remix-themes";
import { Viewer } from "@i-vresse/haddock3-ui";
import { ActPass, ResidueSelection, toggleResidue } from "@i-vresse/haddock3-ui/toggles";
import {
ActPass,
ResidueSelection,
toggleResidue,
} from "@i-vresse/haddock3-ui/toggles";

export function ResiduesSubForm({
molecule,
Expand Down
17 changes: 9 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"remix-auth-form": "^1.3.0",
"remix-auth-github": "^1.7.0",
"remix-auth-oauth2": "^1.8.0",
"remix-themes": "^1.3.1",
"remix-themes": "^1.5.1",
"tailwind-merge": "^2.2.1",
"tailwindcss-animate": "^1.0.7",
"tiny-invariant": "^1.3.1",
Expand Down

0 comments on commit 5406877

Please sign in to comment.