mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
Use safe URI decoding.
This commit is contained in:
parent
a509336bef
commit
b3cad83f08
3 changed files with 6 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { StatusLight } from 'react-basics';
|
||||
import { safeDecodeURIComponent } from 'next-basics';
|
||||
import { colord } from 'colord';
|
||||
import classNames from 'classnames';
|
||||
import { LegendItem } from 'chart.js/auto';
|
||||
|
|
@ -31,7 +32,7 @@ export function Legend({
|
|||
onClick={() => onClick(item)}
|
||||
>
|
||||
<StatusLight color={color.alpha(color.alpha() + 0.2).toHex()}>
|
||||
<span className={locale}>{text}</span>
|
||||
<span className={locale}>{safeDecodeURIComponent(text)}</span>
|
||||
</StatusLight>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue