mirror of
https://github.com/makeplane/plane.git
synced 2026-05-02 22:19:47 -05:00
[WEB-3194]fix: stickies modal close while redirection (#6440)
* fix: stickies modal close while redirection * chore: added deafult for optional prop
This commit is contained in:
@@ -10,7 +10,12 @@ import { useSticky } from "@/hooks/use-stickies";
|
||||
import { ContentOverflowWrapper } from "../../core/content-overflow-HOC";
|
||||
import { StickiesLayout } from "./stickies-list";
|
||||
|
||||
export const StickiesTruncated = observer(() => {
|
||||
type StickiesTruncatedProps = {
|
||||
handleClose?: () => void;
|
||||
};
|
||||
|
||||
export const StickiesTruncated = observer((props: StickiesTruncatedProps) => {
|
||||
const { handleClose = () => {} } = props;
|
||||
// navigation
|
||||
const { workspaceSlug } = useParams();
|
||||
// store hooks
|
||||
@@ -33,6 +38,7 @@ export const StickiesTruncated = observer(() => {
|
||||
className={cn(
|
||||
"gap-1 w-full text-custom-primary-100 text-sm font-medium transition-opacity duration-300 bg-custom-background-90/20"
|
||||
)}
|
||||
onClick={handleClose}
|
||||
>
|
||||
Show all
|
||||
</Link>
|
||||
|
||||
@@ -67,7 +67,7 @@ export const Stickies = observer((props: TProps) => {
|
||||
</div>
|
||||
{/* content */}
|
||||
<div className="mb-4 max-h-[625px] overflow-scroll">
|
||||
<StickiesTruncated />
|
||||
<StickiesTruncated handleClose={handleClose} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user