diff --git a/desktop/app/src/ui/components/ToolbarIcon.tsx b/desktop/app/src/ui/components/ToolbarIcon.tsx index cc864476b..f0a55e864 100644 --- a/desktop/app/src/ui/components/ToolbarIcon.tsx +++ b/desktop/app/src/ui/components/ToolbarIcon.tsx @@ -12,32 +12,32 @@ import {colors} from './colors'; import styled from '@emotion/styled'; import React from 'react'; -type Props = { - title: string; +type Props = React.ComponentProps & { + active?: boolean; icon: string; - active: boolean; + title: string; onClick: () => void; }; -const ToolbarIcon = styled.div({ +const ToolbarIconContainer = styled.div({ marginRight: 9, marginTop: -3, marginLeft: 4, position: 'relative', // for settings popover positioning }); -export default function (props: Props) { +export default function ToolbarIcon({active, icon, ...props}: Props) { return ( - + - + ); }