feat: remember last search query

This commit is contained in:
Prayag Prajapati committed 2024-08-02 09:10:07 +05:30
1 parent 7a2e4ae595
commit 38ba7040a5
10 files changed
+125 -86

No files matched your search

@@ -14,7 +14,7 @@ export const EmptyNotice = ({ extraMsg }) => {
justifyContent: "center",
alignItems: "center",
flexFlow: "column",
position: "absolute",
position: "static",
top: 0,
left: 0,
}}
@@ -267,7 +267,12 @@ const AudioPlayer = () => {
initial={{
transform: "translateY(100%)",
}}
animate={{ transform: "translateY(0)" }}
animate={{
transform:
location.pathname === "/player/audio"
? "translateY(100%)"
: "translateY(0%)",
}}
exit={{
transform: "translateY(100%)",
}}
+1 -1
View File
@@ -9,7 +9,7 @@ const TagChip = ({
linkProps,
}: { label: string; linkProps: LinkProps }) => {
return (
<Link className="tag" {...linkProps}>
<Link className="tag" to="/search" search={{ query: label }} {...linkProps}>
<Typography variant="subtitle2" fontWeight={300}>
{label}
</Typography>