Skip to content

Commit

Permalink
Merge pull request #471 from bento-platform/releases/v6.1.1
Browse files Browse the repository at this point in the history
Port fixes from 6.1.1 to master
  • Loading branch information
davidlougheed authored Dec 6, 2024
2 parents e1304d9 + 2c48c65 commit 8a8f10c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bento_web",
"version": "6.1.0",
"version": "6.1.1",
"description": "Bento platform front-end",
"main": "src/index.tsx",
"dependencies": {
Expand Down
7 changes: 2 additions & 5 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@ import { AUTH_CALLBACK_URL, BENTO_URL_NO_TRAILING_SLASH, CLIENT_ID, OPENID_CONFI
import App from "./components/App";
import { store } from "./store";

// Suppress warnings about upcoming changes from React Router by opting into this feature
// TODO: router v7: remove
const ROUTER_FUTURE = { v7_relativeSplatPath: true, v7_startTransition: true };

// TODO: migrate router to v7
document.addEventListener("DOMContentLoaded", () => {
const container = document.getElementById("root")!;
const root = createRoot(container);
root.render(
<Provider store={store}>
<BrowserRouter future={ROUTER_FUTURE}>
<BrowserRouter>
<BentoAuthContextProvider
value={{
applicationUrl: BENTO_URL_NO_TRAILING_SLASH,
Expand Down
1 change: 1 addition & 0 deletions src/propTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ export const experimentResultPropTypesShape = PropTypes.shape({
"JPEG",
"PNG",
"GIF",
"HTML",
"MARKDOWN",
"MP3",
"M4A",
Expand Down

0 comments on commit 8a8f10c

Please sign in to comment.