Skip to content

Commit

Permalink
chore: Minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tjtanjin committed Sep 13, 2024
1 parent 0a68f61 commit 8eee64a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/components/ChatBot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import { Theme } from "../types/Theme";
/**
* Determines if user gave a provider or if one needs to be created, before rendering the chatbot.
*
* @param id id to uniquely identify the chatbot
* @param flow conversation flow for the bot
* @param settings settings to setup the bot
* @param styles styles to setup the bot
* @param themes themes to apply to the bot
* @param plugins plugins to initialize
*/
const ChatBot = ({
id,
Expand Down
2 changes: 1 addition & 1 deletion src/components/ChatBotBody/ToastPrompt/ToastPrompt.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { useEffect, useState, MouseEvent } from "react";

import { useToast } from "../../../hooks/useToast";
import { useSettingsContext } from "../../../context/SettingsContext";
import { useStylesContext } from "../../../context/StylesContext";

import "./ToastPrompt.css";
import { useToast } from "../../../hooks/useToast";

/**
* Provides toast message prompt with information.
Expand Down
2 changes: 2 additions & 0 deletions src/components/ChatBotContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import "./ChatBotContainer.css";

/**
* Integrates, loads plugins and contains the various components that makeup the chatbot.
*
* @param plugins plugins to initialize
*/
const ChatBotContainer = ({
plugins
Expand Down
2 changes: 1 addition & 1 deletion src/components/ChatBotInput/ChatBotInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import React, {
import { isDesktop } from "../../utils/displayChecker";
import { useFirstInteractionInternal } from "../../hooks/internal/useFirstInteractionInternal";
import { useSubmitInputInternal } from "../../hooks/internal/useSubmitInputInternal";
import { useTextArea } from "../../hooks/useTextArea";
import { useBotStatesContext } from "../../context/BotStatesContext";
import { useBotRefsContext } from "../../context/BotRefsContext";
import { useSettingsContext } from "../../context/SettingsContext";
import { useStylesContext } from "../../context/StylesContext";

import "./ChatBotInput.css";
import { useTextArea } from "../../hooks/useTextArea";

/**
* Contains chat input field for user to enter messages.
Expand Down

0 comments on commit 8eee64a

Please sign in to comment.