diff --git a/web/src/components/layout/Icon.jsx b/web/src/components/layout/Icon.jsx index ab3d6fb4da..f3866cccf3 100644 --- a/web/src/components/layout/Icon.jsx +++ b/web/src/components/layout/Icon.jsx @@ -20,9 +20,6 @@ */ import React from 'react'; -import { sprintf } from "sprintf-js"; - -import { _ } from "~/i18n"; // NOTE: "@icons" is an alias to use a shorter path to real @material-symbols // icons location. Check the tsconfig.json file to see its value. @@ -151,12 +148,12 @@ const icons = { */ export default function Icon({ name, className = "", size = 32, ...otherProps }) { if (!name) { - console.error(sprintf(_("Icon called without name. `%s` given instead. Rendering nothing."), name)); + console.error(`Icon called without name. '${name}' given instead. Rendering nothing.`); return null; } if (!icons[name]) { - console.error(sprintf(_("Icon %s not found!"), name)); + console.error(`Icon '${name}' not found!`); return null; } diff --git a/web/src/components/layout/Icon.test.jsx b/web/src/components/layout/Icon.test.jsx index 8f8339214f..490598a13d 100644 --- a/web/src/components/layout/Icon.test.jsx +++ b/web/src/components/layout/Icon.test.jsx @@ -73,7 +73,7 @@ describe("Icon", () => { it("outputs to console.error", () => { plainRender(); expect(console.error).toHaveBeenCalledWith( - expect.stringContaining("apsens not found") + expect.stringContaining("'apsens' not found") ); });