Skip to content

Commit

Permalink
chore: move HeaderProps into shared/types (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiero authored Jun 24, 2023
1 parent 49f3851 commit 913346b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/modules/prem-chat/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from "clsx";
import setting from "assets/images/setting.svg";
import hamburgerMenu from "assets/images/hamburger-menu.svg";
import { HeaderProps } from "../types";
import { HeaderProps } from "shared/types";
import WarningModal from "modules/service/components/WarningModal";
import { useState } from "react";
import WarningIcon from "shared/components/WarningIcon";
Expand Down
8 changes: 0 additions & 8 deletions src/modules/prem-chat/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ export type PremChatResponse = {
onRegenerate: () => void;
};

export type HeaderProps = {
setRightSidebar: (value: boolean) => void;
rightSidebar: boolean;
hamburgerMenuOpen: boolean;
setHamburgerMenu: (value: boolean) => void;
title: string;
};

export type InputBoxProps = {
question: string;
setQuestion: (question: string) => void;
Expand Down
8 changes: 8 additions & 0 deletions src/shared/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { Message, PremChatHistory } from "modules/prem-chat/types";

export type HeaderProps = {
setRightSidebar: (value: boolean) => void;
rightSidebar: boolean;
hamburgerMenuOpen: boolean;
setHamburgerMenu: (value: boolean) => void;
title: string;
};

export type BotReplyProps = {
reply: string;
};
Expand Down

0 comments on commit 913346b

Please sign in to comment.