diff --git a/app/soapbox/components/sidebar-navigation.tsx b/app/soapbox/components/sidebar-navigation.tsx index 6bce826ba7..6e87adec7d 100644 --- a/app/soapbox/components/sidebar-navigation.tsx +++ b/app/soapbox/components/sidebar-navigation.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; +import { Stack } from 'soapbox/components/ui'; import DropdownMenu from 'soapbox/containers/dropdown-menu-container'; import { useStatContext } from 'soapbox/contexts/stat-context'; import ComposeButton from 'soapbox/features/ui/components/compose-button'; @@ -109,8 +110,8 @@ const SidebarNavigation = () => { }; return ( -
-
+ + { /> )} -
+ {account && ( )} -
+ ); }; diff --git a/app/soapbox/components/ui/button/button.tsx b/app/soapbox/components/ui/button/button.tsx index 4be97ee83d..942ce9df97 100644 --- a/app/soapbox/components/ui/button/button.tsx +++ b/app/soapbox/components/ui/button/button.tsx @@ -49,6 +49,8 @@ const Button = React.forwardRef((props, ref): JSX.El className, } = props; + const body = text || children; + const themeClass = useButtonStyles({ theme, block, @@ -61,7 +63,7 @@ const Button = React.forwardRef((props, ref): JSX.El return null; } - return ; + return ; }; const handleClick = React.useCallback((event) => { @@ -72,7 +74,7 @@ const Button = React.forwardRef((props, ref): JSX.El const renderButton = () => ( ); diff --git a/app/soapbox/features/ui/components/compose-button.tsx b/app/soapbox/features/ui/components/compose-button.tsx index bbe6467a39..c0ffa1a816 100644 --- a/app/soapbox/features/ui/components/compose-button.tsx +++ b/app/soapbox/features/ui/components/compose-button.tsx @@ -10,11 +10,15 @@ const ComposeButton = () => { const onOpenCompose = () => dispatch(openModal('COMPOSE')); return ( -
- -
+ ); }; diff --git a/app/soapbox/features/ui/components/floating-action-button.tsx b/app/soapbox/features/ui/components/floating-action-button.tsx index e837cf1280..8458670305 100644 --- a/app/soapbox/features/ui/components/floating-action-button.tsx +++ b/app/soapbox/features/ui/components/floating-action-button.tsx @@ -1,3 +1,4 @@ +import clsx from 'clsx'; import React from 'react'; import { defineMessages, useIntl } from 'react-intl'; @@ -24,12 +25,15 @@ const FloatingActionButton: React.FC = () => { return ( ); diff --git a/app/soapbox/features/ui/index.tsx b/app/soapbox/features/ui/index.tsx index 9945afd1b5..f2e40827aa 100644 --- a/app/soapbox/features/ui/index.tsx +++ b/app/soapbox/features/ui/index.tsx @@ -641,7 +641,9 @@ const UI: React.FC = ({ children }) => { {(me && !shouldHideFAB()) && ( - +
+ +
)}