Skip to content

Commit

Permalink
upgrade to @tanner/react-query; adding jest testing; theme references…
Browse files Browse the repository at this point in the history
… in every section

update data for stories to match new font configuration
  • Loading branch information
tmanundercover committed Oct 13, 2023
1 parent ebcb021 commit 0f9baea
Show file tree
Hide file tree
Showing 67 changed files with 2,685 additions and 948 deletions.
5 changes: 2 additions & 3 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {QueryClient, QueryClientProvider} from "react-query";
import {QueryClient, QueryClientProvider} from "@tanstack/react-query";
import {BrowserRouter} from "react-router-dom";
import React from 'react';
import {Preview} from '@storybook/react';
Expand All @@ -11,7 +11,7 @@ import {CssBaseline} from "@mui/material";
import CustomizedThemeProvider from "../src/components/customized-theme-provider/CustomizedThemeProvider";
import DigitalResumeThemeData from "../src/stories/data/DigitalResumeThemeData";

const mockedQueryClient = new QueryClient({
export const mockedQueryClient = new QueryClient({
defaultOptions: {
queries: {
retry: false,
Expand All @@ -26,7 +26,6 @@ const preview: Preview = {
<QueryClientProvider client={mockedQueryClient}>
<PageProvider page={HomePageResumeData}>
<CustomizedThemeProvider pageTheme={DigitalResumeThemeData}>
<CssBaseline/>
<SnackbarProvider>
<ModalProvider>
<AmenityProvider>
Expand Down
2 changes: 1 addition & 1 deletion functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ app.post("/send-email-resume",
} catch (e) {
logClient.log("collect-email-address", "ERROR",
"Could not create Lead", {email: reqBody.email});
functionRes.send({status: "400", e});
functionRes.error({status: "400", e});
}
});

Expand Down
Loading

0 comments on commit 0f9baea

Please sign in to comment.