diff --git a/packages/extension-polkagate/src/components/TwoButtons.tsx b/packages/extension-polkagate/src/components/TwoButtons.tsx index 9042c9d37..444437c70 100644 --- a/packages/extension-polkagate/src/components/TwoButtons.tsx +++ b/packages/extension-polkagate/src/components/TwoButtons.tsx @@ -16,6 +16,8 @@ interface Props { onPrimaryClick: React.MouseEventHandler; secondaryBtnText?: string; onSecondaryClick: React.MouseEventHandler; + primaryBtnStartIcon?: React.JSX.Element; + secondaryBtnStartIcon?: React.JSX.Element; mt?: string; ml?: string; disabled?: boolean; @@ -25,7 +27,7 @@ interface Props { } // TODO: can replace ButtonWithCancel later -export default function TwoButtons ({ disabled = false, isBusy = false, ml = '6%', mt, onPrimaryClick, onSecondaryClick, primaryBtnText, secondaryBtnText, variant = 'outlined', width = '88%' }: Props): React.ReactElement { +export default function TwoButtons ({ disabled = false, isBusy = false, ml = '6%', mt, onPrimaryClick, onSecondaryClick, primaryBtnStartIcon, primaryBtnText, secondaryBtnStartIcon, secondaryBtnText, variant = 'outlined', width = '88%' }: Props): React.ReactElement { const { t } = useTranslation(); const theme = useTheme(); @@ -35,6 +37,7 @@ export default function TwoButtons ({ disabled = false, isBusy = false, ml = '6%