Skip to content

Commit

Permalink
Merge pull request #218 from edlerd/update-deps
Browse files Browse the repository at this point in the history
Update ui dependencies
  • Loading branch information
nsklikas committed Jan 30, 2024
2 parents a4a9d49 + 776ca48 commit fad4125
Show file tree
Hide file tree
Showing 4 changed files with 693 additions and 397 deletions.
12 changes: 5 additions & 7 deletions ui/components/Flow.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import {
LoginFlow,
UiNode,
UpdateLoginFlowBody,
UpdateRecoveryFlowBody,
UpdateRegistrationFlowBody,
UpdateSettingsFlowBody,
UpdateVerificationFlowBody,
UiNode,
} from "@ory/client";
import { getNodeId } from "@ory/integrations/ui";
import { isUiNodeInputAttributes } from "@ory/integrations/ui";
import { Component, FormEvent } from "react";
import { getNodeId, isUiNodeInputAttributes } from "@ory/integrations/ui";
import React, { Component, FormEvent } from "react";
import { Node } from "./Node";
import React from "react";

export type Values = Partial<
| UpdateLoginFlowBody
Expand Down Expand Up @@ -74,8 +72,8 @@ export class Flow<T extends Values> extends Component<Props<T>, State<T>> {
// if the user clicks it.
return;
}
values[node.attributes.name as keyof Values] = node.attributes
.value as string;
const key = node.attributes.name as keyof Values;
values[key] = node.attributes.value as Values[keyof Values];
}
});

Expand Down
8 changes: 7 additions & 1 deletion ui/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
module.exports = {
output: 'export',
distDir: 'dist',
experimental: {
esmExternals: 'loose'
},
transpilePackages: ['@canonical/react-components'],
"images":{
"unoptimized": true
},
assetPrefix: "./"
}
}
Loading

0 comments on commit fad4125

Please sign in to comment.