Revert "Wrap text with span for resilience for DOM mutations by google translate"

This reverts commit e87ef2452e.
This commit is contained in:
RIshabh Saxena 2021-03-01 13:25:05 +05:30
parent e87ef2452e
commit 2a868c89a6

View File

@ -405,7 +405,7 @@ const getTextContent = (props: ButtonProps) =>
const getButtonContent = (props: ButtonProps) => (
<>
{getIconContent(props)}
<span>{getTextContent(props)}</span>
{getTextContent(props)}
{props.isLoading ? <Spinner size={IconSizeProp(props.size)} /> : null}
</>
);