diff --git a/webapp/src/components/viewHeader.tsx b/webapp/src/components/viewHeader.tsx index 85a0f4629..49c80fdf3 100644 --- a/webapp/src/components/viewHeader.tsx +++ b/webapp/src/components/viewHeader.tsx @@ -201,7 +201,7 @@ class ViewHeader extends React.Component { key={option.id} id={option.id} name={option.name} - icon={boardTree.activeView.groupById === option.id ? : undefined} + rightIcon={boardTree.activeView.groupById === option.id ? : undefined} onClick={(id) => { if (boardTree.activeView.groupById === id) { return @@ -269,7 +269,7 @@ class ViewHeader extends React.Component { key={option.id} id={option.id} name={option.name} - icon={(activeView.sortOptions[0]?.propertyId === option.id) ? activeView.sortOptions[0].reversed ? : : undefined} + rightIcon={(activeView.sortOptions[0]?.propertyId === option.id) ? activeView.sortOptions[0].reversed ? : : undefined} onClick={(propertyId: string) => { let newSortOptions: ISortOption[] = [] if (activeView.sortOptions[0] && activeView.sortOptions[0].propertyId === propertyId) { diff --git a/webapp/src/widgets/menu/textOption.tsx b/webapp/src/widgets/menu/textOption.tsx index 227c990b6..9aa0f4fa7 100644 --- a/webapp/src/widgets/menu/textOption.tsx +++ b/webapp/src/widgets/menu/textOption.tsx @@ -6,6 +6,7 @@ import {MenuOptionProps} from './menuItem' type TextOptionProps = MenuOptionProps & { icon?: React.ReactNode, + rightIcon?: React.ReactNode, } export default class TextOption extends React.PureComponent { @@ -14,7 +15,7 @@ export default class TextOption extends React.PureComponent { } public render(): JSX.Element { - const {name, icon} = this.props + const {name, icon, rightIcon} = this.props return (
{ > {icon}
{name}
+ {rightIcon}
) }