Skip to content

Commit

Permalink
Convert brand store root to TypeScript (#4305)
Browse files Browse the repository at this point in the history
  • Loading branch information
steverydz authored Jun 27, 2023
1 parent 87e7e25 commit ab5cdfe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Sentry.init({
});

const container = document.getElementById("root");
const root = createRoot(container);
const root = createRoot(container as HTMLDivElement);
root.render(
<Provider store={store}>
<RecoilRoot>
Expand Down
1 change: 1 addition & 0 deletions static/js/brand-store/types/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
declare interface Window {
CSRF_TOKEN: string;
API_URL: string;
SENTRY_DSN: string;
}
2 changes: 1 addition & 1 deletion webpack.config.entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = {
search: "./static/js/public/search.js",
"distro-install": "./static/js/public/distro-install.js",
"publisher-details": "./static/js/public/publisher-details.js",
"brand-store": "./static/js/brand-store/brand-store.js",
"brand-store": "./static/js/brand-store/brand-store.tsx",
"publisher-listing": "./static/js/publisher/listing/index.tsx",
"publisher-settings": "./static/js/publisher/settings/index.tsx",
"publisher-collaboration": "./static/js/publisher/collaboration/index.tsx",
Expand Down

0 comments on commit ab5cdfe

Please sign in to comment.