feat: partner badge in marketplace (#14258)

This commit is contained in:
Wu Tianwei 2025-02-25 12:09:37 +08:00 • committed by GitHub
commit 42b13bd312
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 2288 additions and 31 deletions

View file

@ -27,6 +27,7 @@ import { BubbleTextMod, ChatBot, ListSparkle, Logic } from '@/app/components/bas
import { NEED_REFRESH_APP_LIST_KEY } from '@/config'
import { getRedirection } from '@/utils/app-redirection'
import FullScreenModal from '@/app/components/base/fullscreen-modal'
import useTheme from '@/hooks/use-theme'
type CreateAppProps = {
onSuccess: () => void
@ -346,7 +347,7 @@ function AppPreview({ mode }: { mode: AppMode }) {
}
function AppScreenShot({ mode, show }: { mode: AppMode; show: boolean }) {
const theme = useContextSelector(AppsContext, state => state.theme)
const { theme } = useTheme()
const modeToImageMap = {
'chat': 'Chatbot',
'advanced-chat': 'Chatflow',