Skip to content

Commit

Permalink
feat: Add 'user' prop to EDITOR_PROPS
Browse files Browse the repository at this point in the history
  • Loading branch information
anshg1214 committed Nov 17, 2023
1 parent 25337e4 commit 264109e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/client/helpers/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const LAYOUT_PROPS = [

const EDITOR_PROPS = [
'editor',
'tabActive'
'tabActive',
'user'
];

export function extractLayoutProps(props) {
Expand Down
4 changes: 0 additions & 4 deletions src/server/routes/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ router.get('/:id', async (req, res, next) => {
const markup = ReactDOMServer.renderToString(
<Layout {...propHelpers.extractLayoutProps(props)} >
<EditorContainer
user={props.user}
{...propHelpers.extractEditorProps(props)}
>
<ProfileTab
Expand Down Expand Up @@ -391,7 +390,6 @@ router.get('/:id/revisions', async (req, res, next) => {
const markup = ReactDOMServer.renderToString(
<Layout {...propHelpers.extractLayoutProps(props)}>
<EditorContainer
user={props.user}
{...propHelpers.extractEditorProps(props)}
>
<EditorRevisionPage
Expand Down Expand Up @@ -554,7 +552,6 @@ router.get('/:id/achievements', async (req, res, next) => {
const markup = ReactDOMServer.renderToString(
<Layout {...propHelpers.extractLayoutProps(props)}>
<EditorContainer
user={props.user}
{...propHelpers.extractEditorProps(props)}
>
<AchievementsTab
Expand Down Expand Up @@ -661,7 +658,6 @@ router.get('/:id/collections', async (req, res, next) => {
const markup = ReactDOMServer.renderToString(
<Layout {...propHelpers.extractLayoutProps(props)}>
<EditorContainer
user={props.user}
{...propHelpers.extractEditorProps(props)}
>
<CollectionsPage
Expand Down

0 comments on commit 264109e

Please sign in to comment.