♻️ Refactors date time method

This commit is contained in:
Alicia Sykes
2021-12-19 20:02:44 +00:00
parent f46d1df72a
commit 58cb439086
4 changed files with 20 additions and 7 deletions

View File

@@ -22,7 +22,7 @@
import axios from 'axios';
import WidgetMixin from '@/mixins/WidgetMixin';
import { widgetApiEndpoints } from '@/utils/defaults';
import { findCurrencySymbol, convertTimestampToDate } from '@/utils/MiscHelpers';
import { findCurrencySymbol, timestampToDate } from '@/utils/MiscHelpers';
export default {
mixins: [WidgetMixin],
@@ -121,7 +121,7 @@ export default {
+ `<b>${this.$options.filters.currency(info.marketCap)}</b>`
+ `<br>Circulating Supply: <b>${info.supply} ${info.symbol.toUpperCase()}</b>${maxSupply}`
+ `<br>All-time-high of <b>${info.allTimeHigh}</b> `
+ `at <b>${convertTimestampToDate(info.allTimeHighDate)}</b>`;
+ `at <b>${timestampToDate(info.allTimeHighDate)}</b>`;
return {
content, html: true, trigger: 'hover focus', delay: 250,
};