mirror of
https://github.com/plausible/analytics.git
synced 2024-11-29 14:04:12 +03:00
88e1d9dc28
* Sites API * Extract Revenue react api helpers * !fixup * Extract JS Money module to /extra * Extract Revenue full build extras (tests pass for full) * Update MIX_ENV=small mix test * Remove dead code * Add moduledocs * Add credo config * Trick dialyzer * DRY revenue metrics * Use more concise version of on_full_build macro * Disable credo check
10 lines
192 B
JavaScript
10 lines
192 B
JavaScript
import React from 'react'
|
|
|
|
export default function Money({ formatted }) {
|
|
if (formatted) {
|
|
return <span tooltip={formatted.long}>{formatted.short}</span>
|
|
} else {
|
|
return "-"
|
|
}
|
|
}
|