mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
misc
This commit is contained in:
@@ -25,6 +25,7 @@ const sdk = new NodeSDK({
|
||||
process.env.NEXT_PUBLIC_APP_HOST?.replace('.lux.network', '').replaceAll('-', '_') ||
|
||||
'unknown_app',
|
||||
}),
|
||||
// @ts-ignore
|
||||
spanProcessor: new SimpleSpanProcessor(traceExporter),
|
||||
traceExporter,
|
||||
metricReader: new PeriodicExportingMetricReader({
|
||||
|
||||
@@ -15,7 +15,7 @@ import React, { useCallback, useEffect, useRef } from 'react';
|
||||
import type { FontFace } from 'use-font-face-observer';
|
||||
import useFontFaceObserver from 'use-font-face-observer';
|
||||
|
||||
import { BODY_TYPEFACE, HEADING_TYPEFACE } from 'theme/foundations/typography';
|
||||
import { drukWide, inter } from 'theme/foundations/typography';
|
||||
|
||||
const TAIL_LENGTH = 4;
|
||||
const HEAD_MIN_LENGTH = 4;
|
||||
@@ -33,8 +33,8 @@ const HashStringShortenDynamic = ({ hash, fontWeight = '400', isTooltipDisabled,
|
||||
const [ displayedString, setDisplayedString ] = React.useState(hash);
|
||||
|
||||
const isFontFaceLoaded = useFontFaceObserver([
|
||||
{ family: BODY_TYPEFACE, weight: String(fontWeight) as FontFace['weight'] },
|
||||
{ family: HEADING_TYPEFACE, weight: String(fontWeight) as FontFace['weight'] },
|
||||
{ family: inter.style.fontFamily, weight: String(fontWeight) as FontFace['weight'] },
|
||||
{ family: drukWide.style.fontFamily, weight: String(fontWeight) as FontFace['weight'] },
|
||||
]);
|
||||
|
||||
const calculateString = useCallback(() => {
|
||||
|
||||
@@ -4,7 +4,7 @@ import { debounce } from 'es-toolkit';
|
||||
import React from 'react';
|
||||
import useFontFaceObserver from 'use-font-face-observer';
|
||||
|
||||
import { BODY_TYPEFACE } from 'theme/foundations/typography';
|
||||
import { inter } from 'theme/foundations/typography';
|
||||
|
||||
interface Props {
|
||||
children: React.ReactNode;
|
||||
@@ -18,7 +18,7 @@ const TruncatedTextTooltip = ({ children, label, placement }: Props) => {
|
||||
const { isOpen, onToggle, onOpen, onClose } = useDisclosure();
|
||||
|
||||
const isFontFaceLoaded = useFontFaceObserver([
|
||||
{ family: BODY_TYPEFACE },
|
||||
{ family: inter.style.fontFamily },
|
||||
]);
|
||||
|
||||
const updatedTruncateState = React.useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user