chore(snapshot): sync frontend workspace state
This commit is contained in:
@@ -9,6 +9,7 @@ export type TickerItem = {
|
||||
|
||||
type Props = {
|
||||
items: TickerItem[];
|
||||
className?: string;
|
||||
};
|
||||
|
||||
function formatPct(v: number): string {
|
||||
@@ -16,9 +17,9 @@ function formatPct(v: number): string {
|
||||
return `${s}${v.toFixed(2)}%`;
|
||||
}
|
||||
|
||||
export default function TickerBar({ items }: Props) {
|
||||
export default function TickerBar({ items, className }: Props) {
|
||||
return (
|
||||
<div className="tickerBar">
|
||||
<div className={['tickerBar', className].filter(Boolean).join(' ')}>
|
||||
{items.map((t) => (
|
||||
<div key={t.key} className={['ticker', t.active ? 'ticker--active' : ''].filter(Boolean).join(' ')}>
|
||||
<span className="ticker__label">{t.label}</span>
|
||||
@@ -28,4 +29,3 @@ export default function TickerBar({ items }: Props) {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user