File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed
Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const FolderTag = ({ folderList }: FolderListData) => {
1111 const handleSubmit = ( id : number | string ) => {
1212 router . push ( {
1313 pathname : router . pathname ,
14- query : { ... router . query , folder : id } ,
14+ query : id ? { folder : id } : { } ,
1515 } ) ;
1616 } ;
1717
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ const AddLinkInput = ({ folderList }: FolderListData) => {
1515
1616 const handleClick = ( ) => {
1717 openModal ( "AddModal" , { list : folderList , link : link } ) ;
18+ setLink ( "" ) ;
1819 } ;
1920
2021 const handleKeyDown = ( e : KeyboardEvent < HTMLInputElement > ) => {
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export const SearchInput = () => {
1616 pathname : router . pathname ,
1717 query : { ...router . query , search : value } ,
1818 } ) ;
19+ setValue ( "" ) ;
1920 } ;
2021
2122 return (
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ import { useLinkCardStore } from "@/store/useLinkCardStore";
99import { SearchInput } from "../../components/Search/SearchInput" ;
1010import CardsLayout from "@/components/Layout/CardsLayout" ;
1111import Container from "@/components/Layout/Container" ;
12- import ActionButtons from "@/components/link /ActionButtons" ;
13- import AddLinkInput from "@/components/link /AddLinkInput" ;
12+ import ActionButtons from "@/components/Link /ActionButtons" ;
13+ import AddLinkInput from "@/components/Link /AddLinkInput" ;
1414import SearchResultMessage from "@/components/Search/SearchResultMessage" ;
1515import useModalStore from "@/store/useModalStore" ;
1616import FolderTag from "../../components/FolderTag" ;
You can’t perform that action at this time.
0 commit comments