Skip to content

Commit 3d8495f

Browse files
committed
feat(Support): support center admin settings
1 parent 05d84a8 commit 3d8495f

13 files changed

+424
-90
lines changed

client/package-lock.json

+120
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"@fortawesome/fontawesome-free": "^5.15.4",
1515
"@libretexts/insight-ckeditor5-build": "^1.0.0",
1616
"@tailwindcss/typography": "^0.5.10",
17+
"@tanstack/react-query": "^4.36.1",
18+
"@tanstack/react-query-devtools": "^4.36.1",
1719
"@testing-library/jest-dom": "^5.14.1",
1820
"@testing-library/react": "^11.2.7",
1921
"@testing-library/user-event": "^12.8.3",

client/src/Conductor.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const Conductor = () => {
134134
<LibreTextsRoute exact path='/support' key="support" component={SupportCenter} org={org}/>
135135
{/* <LibreTextsRoute exact path='/support/contact' key="supportcontact" component={SupportCenterCreateTicket} org={org}/>
136136
<LibreTextsRoute exact path='/support/ticket/:id' key='supportticket' org={org} component={SupportTicket} /> */}
137-
{/* LibreTexts org private routes */}
137+
{/*LibreTexts org private routes */}
138138
{/* <LibreTextsPrivateRoute exact path='/support/dashboard' key='supportdashboard' org={org} component={SupportDashboard} /> */}
139139
{/* 404 */}
140140
<Route component={PageNotFound} />

client/src/Platform.jsx

+10-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import withOrgStateDependency from "./enhancers/withOrgStateDependency";
1212
import "./styles/global.css";
1313
import { ErrorBoundary } from "react-error-boundary";
1414
import ErrorScreen from "./screens/ErrorScreen";
15+
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
16+
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
1517

1618
/**
1719
* Exposes the applications and global configuration.
@@ -76,11 +78,16 @@ const Platform = () => {
7678
/* Require Organization info globally */
7779
const Application = withOrgStateDependency(ApplicationTree);
7880

81+
const queryClient = new QueryClient();
82+
7983
return (
8084
<BrowserRouter>
81-
<Provider store={store}>
82-
<Application />
83-
</Provider>
85+
<QueryClientProvider client={queryClient}>
86+
<Provider store={store}>
87+
<Application />
88+
</Provider>
89+
<ReactQueryDevtools initialIsOpen={false} />
90+
</QueryClientProvider>
8491
</BrowserRouter>
8592
);
8693
};

0 commit comments

Comments
 (0)