Skip to content

Commit

Permalink
sparkle: fix Citation types (#2097)
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu authored Oct 12, 2023
1 parent 634861b commit 631400d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions sparkle/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sparkle/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions sparkle/src/components/Citation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -17,7 +17,7 @@ interface CitationProps {

const typeIcons = {
slack: Slack,
drive: Drive,
google_drive: Drive,
github: Github,
notion: Notion,
document: DocumentText,
Expand Down
4 changes: 2 additions & 2 deletions sparkle/src/stories/Citation.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const meta = {

export default meta;

export const ListChipsExample = () => (
export const CitationsExample = () => (
<div className="s-flex s-flex-col s-gap-8">
<Citation
title="Source: Thread on #general"
Expand All @@ -34,7 +34,7 @@ export const ListChipsExample = () => (
/>
<Citation
title="Title"
type="drive"
type="google_drive"
index="3"
href="https://www.google.com"
description="Write a 120 character description of the citation here to be displayed in the citation list."
Expand Down

0 comments on commit 631400d

Please sign in to comment.