Skip to content

Commit

Permalink
chore: update ui dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: David Edler <[email protected]>
  • Loading branch information
edlerd committed Jan 30, 2024
1 parent a4a9d49 commit a347ed4
Show file tree
Hide file tree
Showing 4 changed files with 692 additions and 396 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 a347ed4

Please sign in to comment.