From 2badf118e0f0d60eeaf165fbc6339d30cb32367b Mon Sep 17 00:00:00 2001 From: mohammed magdy Date: Thu, 8 Feb 2024 13:32:28 +0200 Subject: [PATCH] add optional prop to make article save button icon only --- components/x-article-save-button/src/ArticleSaveButton.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/x-article-save-button/src/ArticleSaveButton.jsx b/components/x-article-save-button/src/ArticleSaveButton.jsx index 7d0aab94e..2d7b628e9 100644 --- a/components/x-article-save-button/src/ArticleSaveButton.jsx +++ b/components/x-article-save-button/src/ArticleSaveButton.jsx @@ -41,7 +41,7 @@ export const ArticleSaveButton = (props) => { aria-pressed={props.saved} > - {props.saved ? 'Saved' : 'Save'} + {props.iconOnly ? '' : props.saved ? 'Saved' : 'Save'} )