From c52e79faf0aa4fe55ddf5342569a05d4caebfdab Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 7 May 2024 18:49:39 +0300 Subject: [PATCH] import-typo-fix --- src/components/Article/AudioPlayer/PlayerPlaylist.tsx | 2 +- src/utils/meta.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Article/AudioPlayer/PlayerPlaylist.tsx b/src/components/Article/AudioPlayer/PlayerPlaylist.tsx index 4d1ff700..81e69d58 100644 --- a/src/components/Article/AudioPlayer/PlayerPlaylist.tsx +++ b/src/components/Article/AudioPlayer/PlayerPlaylist.tsx @@ -3,7 +3,7 @@ import { For, Show, createSignal, lazy } from 'solid-js' import { useLocalize } from '../../../context/localize' import { MediaItem } from '../../../pages/types' -import { getDescription } from '../../../utils' +import { getDescription } from '../../../utils/meta' import { Icon } from '../../_shared/Icon' import { Popover } from '../../_shared/Popover' import { SharePopup, getShareUrl } from '../SharePopup' diff --git a/src/utils/meta.ts b/src/utils/meta.ts index 10eeb0ee..d436946c 100644 --- a/src/utils/meta.ts +++ b/src/utils/meta.ts @@ -1,6 +1,7 @@ import { Shout } from '../graphql/schema/core.gen' const MAX_DESCRIPTION_LENGTH = 150 + export const getDescription = (body: string): string => { if (!body) { return ''