mirror of
https://github.com/makeplane/plane.git
synced 2025-12-23 07:09:34 +01:00
* feat: added-stickies * fix: recents empty state fixed * fix: added border * Change sort_order field * fix: remvoved btn * fix: sticky toolbar * fix: build * fix: sticky search * fix: minor css fix * fix: issue identifier css handled * fix: issue type default icon * fix: added tooltip for color palette and delete --------- Co-authored-by: sangeethailango <sangeethailango21@gmail.com>
12 lines
397 B
TypeScript
12 lines
397 B
TypeScript
import { useContext } from "react";
|
|
// context
|
|
import { StoreContext } from "@/lib/store-context";
|
|
import { IStickyStore } from "@/store/sticky/sticky.store";
|
|
// plane web stores
|
|
|
|
export const useSticky = (): IStickyStore => {
|
|
const context = useContext(StoreContext);
|
|
if (context === undefined) throw new Error("useSticky must be used within StoreProvider");
|
|
return context.stickyStore;
|
|
};
|