Skip to content

Commit 5517309

Browse files
authored
Merge pull request #13 from aha-develop/DEVELOP-2308-7-move-sendtoai-component-aha-develop-react---and-export-it
DEVELOP-2308-7: Move SendToAI component into aha-develop-react - and export it
2 parents 8c6c4f6 + 8dea5fa commit 5517309

3 files changed

Lines changed: 17 additions & 15 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aha-app/aha-develop-react",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"description": "Common React patterns for Aha! develop",
55
"main": "dist/index.js",
66
"repository": "https://github.com/aha-develop/aha-develop-react",

src/components/SendToAI.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
import React, { ReactNode } from "react";
22

3-
export const SendToAI = ({
4-
label,
5-
button,
6-
icon,
7-
footer,
8-
}: {
3+
export type SendToAIProps = {
94
label: string;
105
button: ReactNode;
116
alert?: ReactNode;
127
icon?: ReactNode;
138
footer?: ReactNode;
14-
}) => {
9+
};
10+
11+
export const SendToAI = ({
12+
label,
13+
button,
14+
alert,
15+
icon,
16+
footer,
17+
}: SendToAIProps) => {
1518
return (
1619
<div style={{ display: "flex", flexDirection: "column", gap: "8px" }}>
1720
{alert}

src/index.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ export { AuthProvider } from "./AuthProvider";
33

44
export {
55
EmbeddedContent,
6-
EmbeddedContentProps
7-
} from "./components/EmbeddedContent"
6+
EmbeddedContentProps,
7+
} from "./components/EmbeddedContent";
88

9-
export {
10-
DrawerInput,
11-
DrawerInputProps
12-
} from "./components/DrawerInput"
9+
export { DrawerInput, DrawerInputProps } from "./components/DrawerInput";
1310

1411
export {
1512
EmbeddedContentAttribute,
16-
EmbeddedContentAttributeProps
13+
EmbeddedContentAttributeProps,
1714
} from "./patterns/EmbeddedContentAttribute";
15+
16+
export { SendToAI, SendToAIProps } from "./components/SendToAI";

0 commit comments

Comments
 (0)