Skip to content

Commit

Permalink
chore(boxai-sidebar): Minor PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DanilaRubleuski committed Oct 16, 2024
1 parent 2e0c663 commit 29fcd37
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion i18n/en-US.properties
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ be.contentSidebar.editTask.approval.title = Modify Approval Task
# modal title for when editing an existing general task
be.contentSidebar.editTask.general.title = Modify General Task
# Default message for Box AI expand button in sidebar header
be.contentSidebarExpandBoxAI = Expand
be.contentSidebar.boxAI.expand = Expand
# Label for copy action.
be.copy = Copy
# Label for create action.
Expand Down
10 changes: 5 additions & 5 deletions src/elements/content-sidebar/BoxAISidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ function BoxAISidebar({ onExpandClick }: BoxAISidebarProps) {

return (
<SidebarContent
className={'bcs-BoxAISidebar'}
sidebarView={SIDEBAR_VIEW_BOXAI}
title={formatMessage(messages.sidebarBoxAITitle)}
actions={
<IconButton
onClick={onExpandClick}
icon={ArrowsExpand}
aria-label={formatMessage(sidebarMessages.expandBoxAI)}
icon={ArrowsExpand}
onClick={onExpandClick}
size="x-small"
/>
}
className="bcs-BoxAISidebar"
sidebarView={SIDEBAR_VIEW_BOXAI}
title={formatMessage(messages.sidebarBoxAITitle)}
>
<div className="bcs-BoxAISidebar-content" />
</SidebarContent>
Expand Down
10 changes: 5 additions & 5 deletions src/elements/content-sidebar/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ const messages = defineMessages({
defaultMessage: 'Tasks',
description: 'Dropdown option for filtering tasks from activity list',
},
boxAISidebarExpand: {
id: 'be.contentSidebar.boxAI.expand',
description: 'Default message for Box AI expand button in sidebar header',
defaultMessage: 'Expand',
},
boxSignFtuxBody: {
id: 'be.contentSidebar.boxSignFtuxBody',
defaultMessage: 'Sign documents or send signature requests, right from where your content lives',
Expand Down Expand Up @@ -117,11 +122,6 @@ const messages = defineMessages({
defaultMessage: 'Modify General Task',
description: 'modal title for when editing an existing general task',
},
expandBoxAI: {
id: 'be.contentSidebarExpandBoxAI',
description: 'Default message for Box AI expand button in sidebar header',
defaultMessage: 'Expand',
},
});

export default messages;

0 comments on commit 29fcd37

Please sign in to comment.