Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
fallaciousreasoning committed Oct 14, 2024
1 parent fbde38b commit 41a30b1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion components/ai_chat/resources/page/chat_ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function Content () {
const aiChatContext = useAIChat()

if (aiChatContext.isStandalone === undefined) {
return <div>"loading..."</div>
return <div>loading...</div>
}

if (!aiChatContext.isStandalone) {
Expand Down
11 changes: 0 additions & 11 deletions components/ai_chat/resources/page/components/main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,17 +181,6 @@ function Main() {
<AlertCenter position='top-left' className={styles.alertCenter} />
<div className={styles.conversationContent}
ref={conversationContentElement}>
{/* {aiChatContext.isHistoryEnabled &&
<ul>
<li onClick={() => aiChatContext.onSelectConversationUuid(undefined)}>This page's conversation</li>
{aiChatContext.visibleConversations.map(conversation => (
<li key={conversation.uuid} onClick={() => aiChatContext.onSelectConversationUuid(conversation.uuid)}>
<div>{conversation.uuid}</div>
<div>{conversation.title}</div>
</li>
))}
</ul>
} */}
{aiChatContext.hasAcceptedAgreement && <>
<ModelIntro />
<ConversationList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@ export default function SidebarNav(props: SidebarNavProps) {
</div>
<div className={styles.scroller}>
<nav className={styles.nav}>
{/* <div className={styles.timeLabel}>Today</div> */}
<ol>
{aiChatContext.visibleConversations.map((item, index) => {
{aiChatContext.visibleConversations.map(item => {
return (
<li key={item.uuid}>
<div
Expand Down

0 comments on commit 41a30b1

Please sign in to comment.