Skip to content

Commit

Permalink
correct types
Browse files Browse the repository at this point in the history
  • Loading branch information
BearHanded committed Jul 5, 2024
1 parent c64204c commit 3e2416b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion services/ui-src/src/types/other.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ export interface CustomHtmlElement {
content: string | any;
as?: string;
props?: {[key: string]: any};
children?: CustomHtmlElement[];
}

export interface ErrorVerbiage {
title: string;
description: string;
description: string | CustomHtmlElement[];
}
2 changes: 0 additions & 2 deletions services/ui-src/src/utils/auth/userProvider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import userEvent from "@testing-library/user-event";
import { act } from "react-dom/test-utils";
import { UserContext, UserProvider, useStore } from "utils";
import {
mockBannerStore,
mockStateUserStore,
RouterWrappedComponent,
} from "utils/testing/setupJest";
Expand Down Expand Up @@ -114,7 +113,6 @@ describe("<UserProvider />", () => {
beforeEach(async () => {
await act(async () => {
mockedUseStore
.mockReturnValue(mockBannerStore)
.mockReturnValue(mockStateUserStore);
render(testComponent);
});
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/utils/other/parsing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function createElementWithChildren(
return React.createElement(
elementType,
elementProps,
element.children.map((x) => createElementWithChildren(x))
element.children.map((x: any) => createElementWithChildren(x))
);
}
const santizedContent = sanitizeAndParseHtml(content);
Expand Down

0 comments on commit 3e2416b

Please sign in to comment.