Skip to content

Commit

Permalink
Convert to named export
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkr committed Dec 5, 2024
1 parent d05d067 commit f73eac1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/structures/auth/E2eSetup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { MatrixClient } from "matrix-js-sdk/src/matrix";

import AuthPage from "../../views/auth/AuthPage";
import CompleteSecurityBody from "../../views/auth/CompleteSecurityBody";
import InitialCryptoSetupDialog from "../../views/dialogs/security/InitialCryptoSetupDialog";
import { InitialCryptoSetupDialog } from "../../views/dialogs/security/InitialCryptoSetupDialog";

interface IProps {
matrixClient: MatrixClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ interface Props {
* In most cases, only a spinner is shown, but for more
* complex auth like SSO, the user may need to complete some steps to proceed.
*/
const InitialCryptoSetupDialog: React.FC<Props> = ({ matrixClient, accountPassword, tokenLogin, onFinished }) => {
export const InitialCryptoSetupDialog: React.FC<Props> = ({
matrixClient,
accountPassword,
tokenLogin,
onFinished,
}) => {
const [error, setError] = useState(false);

const doSetup = useCallback(async () => {
Expand Down Expand Up @@ -96,5 +101,3 @@ const InitialCryptoSetupDialog: React.FC<Props> = ({ matrixClient, accountPasswo
</BaseDialog>
);
};

export default InitialCryptoSetupDialog;
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { mocked } from "jest-mock";
import { MatrixClient } from "matrix-js-sdk/src/matrix";

import { createCrossSigning } from "../../../../../src/CreateCrossSigning";
import InitialCryptoSetupDialog from "../../../../../src/components/views/dialogs/security/InitialCryptoSetupDialog";
import { InitialCryptoSetupDialog } from "../../../../../src/components/views/dialogs/security/InitialCryptoSetupDialog";
import { createTestClient } from "../../../../test-utils";

jest.mock("../../../../../src/CreateCrossSigning", () => ({
Expand Down

0 comments on commit f73eac1

Please sign in to comment.