-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TGA-88] fix: Add item back to IPreviewComponentProps interface #4460
Conversation
`item` is passed into Editor component but not Preview component, keep similar interfaces between those two allows common functionality between preview and edit. `item` is also used by preview components in extensions from both Belga and 360info
@thecalcc The
E2E is also failing in that base branch. So I don't believe I have introduced any test failures in this PR |
item1: any; | ||
item2: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please type these two objects
@@ -6,6 +6,7 @@ import {Button} from 'superdesk-ui-framework/react'; | |||
import {gettext} from 'core/utils'; | |||
|
|||
export function previewAuthoringEntity( | |||
item: any, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please type this prop
@@ -3374,6 +3374,7 @@ declare module 'superdesk-api' { | |||
} | |||
|
|||
export interface IPreviewComponentProps<IValue, IConfig> { | |||
item: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please type this
Yep, I broke them, we have a fix in progress on a different branch that's not merged yet. No worries |
item
is passed into Editor component but not Preview component, keep similar interfaces between those two allows common functionality between preview and edit.item
is also used by preview components in extensions from both Belga and 360info