-
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
Add styles for multi column publish tab #4345
Add styles for multi column publish tab #4345
Conversation
return assertNever(activeTab); | ||
function PanelWithHeader({columnCount = 1, children}: {columnCount?: number, children: React.ReactNode}) { | ||
return ( | ||
<Panel width={`${40 * columnCount}rem`} markupV2={markupV2} data-test-id="interactive-actions-panel"> |
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.
what does the 40
mean? Maybe it'd be better to put it in a constant.
logger.error(new Error('Publishing multiple items from authoring pane is not supported')); | ||
|
||
return null; |
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.
Wouldn't it be better to have this show a modal or just something in the UI?
if (items.length !== 1) { | ||
logger.error(new Error('Correcting multiple items from authoring pane is not supported')); | ||
|
||
return null; |
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.
Same here
} if (activeTab === 'duplicate_to') { | ||
return ( | ||
<PanelWithHeader> | ||
<DuplicateToTab | ||
items={items} | ||
closeDuplicateToView={onClose} | ||
markupV2={markupV2} | ||
/> | ||
</PanelWithHeader> | ||
); | ||
} if (activeTab === 'unspike') { | ||
return ( | ||
<PanelWithHeader> | ||
<UnspikeTab | ||
items={items} | ||
closeUnspikeView={onClose} | ||
markupV2={markupV2} | ||
/> | ||
</PanelWithHeader> | ||
); |
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.
Was this meant to be else if
s instead of just if
s. If not why?
db520e7
into
superdesk:authoring-react-post-broadcasting
SDESK-7082