Update recoil v4 states to getters (#3451)

Update v4 states to getters

Co-authored-by: Thomas Trompette <thomast@twenty.com>
This commit is contained in:
Thomas Trompette
2024-01-15 18:18:55 +01:00
committed by GitHub
parent 4695e99458
commit 4e36c6d584
26 changed files with 169 additions and 135 deletions

View File

@ -57,8 +57,8 @@ export const ShowPageRightContainer = ({
}: ShowPageRightContainerProps) => {
const isMessagingEnabled = useIsFeatureEnabled('IS_MESSAGING_ENABLED');
const { activeTabIdState } = useTabList(TAB_LIST_COMPONENT_ID);
const activeTabId = useRecoilValue(activeTabIdState());
const { getActiveTabIdState } = useTabList(TAB_LIST_COMPONENT_ID);
const activeTabId = useRecoilValue(getActiveTabIdState());
const { objectMetadataItem: targetableObjectMetadataItem } =
useObjectMetadataItem({