This commit is contained in:
artem ash
2025-02-02 12:51:20 -06:00
committed by zeekay
parent ea81e2addf
commit c192387541
3 changed files with 6 additions and 5 deletions
+1
View File
@@ -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({
+3 -3
View File
@@ -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(() => {
+2 -2
View File
@@ -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(() => {