-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from SkywardAI/improves
add delete / rename conversation & bug fix
- Loading branch information
Showing
8 changed files
with
234 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
export default function Ticket({ title, info, selectChat, is_selected }) { | ||
import { XLg } from "react-bootstrap-icons"; | ||
|
||
export default function Ticket({ title, info, selectChat, is_selected, deleteHistory }) { | ||
|
||
return ( | ||
<div | ||
className={`ticket clickable${is_selected ? " selected":""}`} | ||
onClick={()=>selectChat(info)} | ||
> | ||
{ title } | ||
<XLg | ||
className="delete-icon clickable" | ||
onClick={evt=>{ | ||
evt.stopPropagation(); | ||
deleteHistory({ uid: info.uid, title }) | ||
}} | ||
/> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.