forked from superdesk/superdesk-client-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add aditional button for full width mode
- Loading branch information
Showing
8 changed files
with
122 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
scripts/apps/authoring/authoring/components/toggleFullWithEditor.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from 'react'; | ||
import {Icon} from 'superdesk-ui-framework/react/components/Icon'; | ||
import {Tooltip} from 'superdesk-ui-framework/react/components/Tooltip'; | ||
import classNames from 'classnames'; | ||
|
||
interface IProps { | ||
isExpanded: boolean; | ||
onClick(event): void; | ||
} | ||
|
||
export class ToggleFullWidth extends React.Component<IProps> { | ||
render() { | ||
let classes = classNames('expand-button', { | ||
'expand-button--expanded': this.props.isExpanded, | ||
}) | ||
return ( | ||
<Tooltip | ||
text={this.props.isExpanded ? "Revert Authoring" : "Expand Authoring"} | ||
Check failure on line 18 in scripts/apps/authoring/authoring/components/toggleFullWithEditor.tsx GitHub Actions / test
|
||
flow='right' | ||
appendToBody={true} | ||
> | ||
<button | ||
className={classes} | ||
onClick={this.props.onClick} | ||
> | ||
<Icon name='chevron-left-thin' /> | ||
</button> | ||
</Tooltip> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters