| 1 |
import React from "react"; |
| 2 |
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; |
| 3 |
import { ToastContainer } from "react-toastify"; |
| 4 |
import DocCategoriesRoot from "./components/DocCategoriesRoot"; |
| 5 |
|
| 6 |
const queryClient = new QueryClient({ |
| 7 |
defaultOptions: { |
| 8 |
queries: { |
| 9 |
refetchOnWindowFocus: false, |
| 10 |
retry: 1, |
| 11 |
}, |
| 12 |
}, |
| 13 |
}); |
| 14 |
|
| 15 |
const DocCategories = () => ( |
| 16 |
<div className="betterdocs-dashboard-body betterdocs-dashboard-container bd-doc-categories-wrapper"> |
| 17 |
<QueryClientProvider client={queryClient}> |
| 18 |
<ToastContainer |
| 19 |
position="bottom-right" |
| 20 |
autoClose={3000} |
| 21 |
hideProgressBar={false} |
| 22 |
closeOnClick |
| 23 |
pauseOnHover |
| 24 |
draggable |
| 25 |
theme="colored" |
| 26 |
limit={4} |
| 27 |
/> |
| 28 |
<DocCategoriesRoot /> |
| 29 |
</QueryClientProvider> |
| 30 |
</div> |
| 31 |
); |
| 32 |
|
| 33 |
export default DocCategories; |
| 34 |
|