Add react-clipboard dependency back and update translation

This commit is contained in:
Mark Kaylor 2022-10-05 16:23:54 +02:00
parent f2450b9298
commit df97f6ebda
4 changed files with 5 additions and 6 deletions

View File

@ -62,7 +62,7 @@ const CardButton = ({ strapiPeerDepVersion, strapiAppVersion, handleCopy, plugin
{ {
id: 'admin.pages.MarketPlacePage.plugin.version', id: 'admin.pages.MarketPlacePage.plugin.version',
defaultMessage: defaultMessage:
'Update your Strapi version: "{strapiAppVersion}" to satisfy the compatible range: "{versionRange}"', 'Update your Strapi version: "{strapiAppVersion}" to: "{versionRange}"',
}, },
{ {
strapiAppVersion, strapiAppVersion,

View File

@ -271,9 +271,7 @@ describe('Marketplace page', () => {
}); });
expect(button).toBeDisabled(); expect(button).toBeDisabled();
expect(tooltip).toBeInTheDocument(); expect(tooltip).toBeInTheDocument();
expect(tooltip).toHaveTextContent( expect(tooltip).toHaveTextContent('Update your Strapi version: "4.1.0" to: "4.0.7"');
'Update your Strapi version: "4.1.0" to satisfy the compatible range: "4.0.7"'
);
}); });
it('shows compatibility tooltip message when no version provided', async () => { it('shows compatibility tooltip message when no version provided', async () => {

View File

@ -270,7 +270,7 @@
"admin.pages.MarketPlacePage.plugin.installed": "Installed", "admin.pages.MarketPlacePage.plugin.installed": "Installed",
"admin.pages.MarketPlacePage.plugin.tooltip.madeByStrapi": "Made by Strapi", "admin.pages.MarketPlacePage.plugin.tooltip.madeByStrapi": "Made by Strapi",
"admin.pages.MarketPlacePage.plugin.tooltip.verified": "Plugin verified by Strapi", "admin.pages.MarketPlacePage.plugin.tooltip.verified": "Plugin verified by Strapi",
"admin.pages.MarketPlacePage.plugin.version": "Update your Strapi version: \"{strapiAppVersion}\" to satisfy the compatible range: \"{versionRange}\"", "admin.pages.MarketPlacePage.plugin.version": "Update your Strapi version: \"{strapiAppVersion}\" to: \"{versionRange}\"",
"admin.pages.MarketPlacePage.plugin.version.null": "Unable to verify compatibility with your Strapi version: \"{strapiAppVersion}\"", "admin.pages.MarketPlacePage.plugin.version.null": "Unable to verify compatibility with your Strapi version: \"{strapiAppVersion}\"",
"admin.pages.MarketPlacePage.providers": "Providers", "admin.pages.MarketPlacePage.providers": "Providers",
"admin.pages.MarketPlacePage.search.clear": "Clear the search", "admin.pages.MarketPlacePage.search.clear": "Clear the search",

View File

@ -107,6 +107,7 @@
"prop-types": "^15.7.2", "prop-types": "^15.7.2",
"qs": "6.10.1", "qs": "6.10.1",
"react": "^17.0.2", "react": "^17.0.2",
"react-copy-to-clipboard": "^5.1.0",
"react-dnd": "^14.0.2", "react-dnd": "^14.0.2",
"react-dnd-html5-backend": "^14.0.0", "react-dnd-html5-backend": "^14.0.0",
"react-dom": "^17.0.2", "react-dom": "^17.0.2",
@ -163,4 +164,4 @@
} }
} }
} }
} }