Skip to content

Commit

Permalink
Unify save buttons in stats
Browse files Browse the repository at this point in the history
Foxes #3722
  • Loading branch information
CarolineDenis committed Jul 7, 2023
1 parent dfa94c2 commit 8e59134
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -37,11 +37,11 @@ export function StatsPageEditing({
<Button.Secondary onClick={handleClose}>
{commonText.close()}
</Button.Secondary>
<Submit.Blue form={id('form')}>
<Submit.Save form={id('form')}>
{typeof handleRename === 'function'
? commonText.save()
: commonText.add()}
</Submit.Blue>
</Submit.Save>
</>
}
header={label === undefined ? statsText.addPage() : statsText.editPage()}
Expand Down
Expand Up @@ -599,7 +599,7 @@ function ProtectedStatsPage(): JSX.Element | null {
>
{commonText.cancel()}
</Button.Secondary>
<Submit.Gray>{commonText.save()}</Submit.Gray>
<Submit.Save>{commonText.save()}</Submit.Save>
</>
) : (
canEdit && (
Expand Down

0 comments on commit 8e59134

Please sign in to comment.