Display columns on Record Board (#3626)

* Display columns on Record board

* Fix

* Fix according to review

* Fix
This commit is contained in:
Charles Bochet
2024-01-25 18:21:15 +01:00
committed by GitHub
parent ca6250286a
commit 377fd23c90
27 changed files with 591 additions and 29 deletions

View File

@ -1,2 +1,2 @@
export const getScopeIdFromComponentId = (componentId?: string) =>
componentId ? `${componentId}-scope` : undefined;
export const getScopeIdFromComponentId = (componentId: string) =>
`${componentId}-scope`;

View File

@ -0,0 +1,4 @@
import { getScopeIdFromComponentId } from '@/ui/utilities/recoil-scope/utils/getScopeIdFromComponentId';
export const getScopeIdOrUndefinedFromComponentId = (componentId?: string) =>
componentId ? getScopeIdFromComponentId(componentId) : undefined;

View File

@ -0,0 +1,8 @@
import { DefaultValue } from 'recoil';
export const guardRecoilDefaultValue = (
candidate: any,
): candidate is DefaultValue => {
if (candidate instanceof DefaultValue) return true;
return false;
};