From 631400d948d348e1a342e4c3f515e26db079726f Mon Sep 17 00:00:00 2001 From: Stanislas Polu Date: Thu, 12 Oct 2023 17:51:22 +0200 Subject: [PATCH] sparkle: fix Citation types (#2097) --- sparkle/package-lock.json | 4 ++-- sparkle/package.json | 2 +- sparkle/src/components/Citation.tsx | 4 ++-- sparkle/src/stories/Citation.stories.tsx | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sparkle/package-lock.json b/sparkle/package-lock.json index 06acd25927d0..d0f02a968e46 100644 --- a/sparkle/package-lock.json +++ b/sparkle/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dust-tt/sparkle", - "version": "0.2.10", + "version": "0.2.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dust-tt/sparkle", - "version": "0.2.10", + "version": "0.2.11", "license": "ISC", "dependencies": { "@headlessui/react": "^1.7.17" diff --git a/sparkle/package.json b/sparkle/package.json index 0e756e389ad5..36f76d122235 100644 --- a/sparkle/package.json +++ b/sparkle/package.json @@ -1,6 +1,6 @@ { "name": "@dust-tt/sparkle", - "version": "0.2.10", + "version": "0.2.11", "scripts": { "build": "rm -rf dist && rollup -c", "build:with-tw-base": "rollup -c --environment INCLUDE_TW_BASE:true", diff --git a/sparkle/src/components/Citation.tsx b/sparkle/src/components/Citation.tsx index 7bd34ba47316..723bf1797061 100644 --- a/sparkle/src/components/Citation.tsx +++ b/sparkle/src/components/Citation.tsx @@ -7,7 +7,7 @@ import { Drive, Github, Notion, Slack } from "@sparkle/logo/platforms"; import { ExternalLinkIcon, Icon, IconButton } from ".."; interface CitationProps { - type?: "slack" | "drive" | "github" | "notion" | "document"; + type?: "slack" | "google_drive" | "github" | "notion" | "document"; title: string; description?: string; index?: ReactNode; @@ -17,7 +17,7 @@ interface CitationProps { const typeIcons = { slack: Slack, - drive: Drive, + google_drive: Drive, github: Github, notion: Notion, document: DocumentText, diff --git a/sparkle/src/stories/Citation.stories.tsx b/sparkle/src/stories/Citation.stories.tsx index d02f47bb60e4..3fb072c116a2 100644 --- a/sparkle/src/stories/Citation.stories.tsx +++ b/sparkle/src/stories/Citation.stories.tsx @@ -10,7 +10,7 @@ const meta = { export default meta; -export const ListChipsExample = () => ( +export const CitationsExample = () => (
( />