Display columns on Record Board (#3626)
* Display columns on Record board * Fix * Fix according to review * Fix
This commit is contained in:
@ -1,2 +1,2 @@
|
||||
export const getScopeIdFromComponentId = (componentId?: string) =>
|
||||
componentId ? `${componentId}-scope` : undefined;
|
||||
export const getScopeIdFromComponentId = (componentId: string) =>
|
||||
`${componentId}-scope`;
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
import { getScopeIdFromComponentId } from '@/ui/utilities/recoil-scope/utils/getScopeIdFromComponentId';
|
||||
|
||||
export const getScopeIdOrUndefinedFromComponentId = (componentId?: string) =>
|
||||
componentId ? getScopeIdFromComponentId(componentId) : undefined;
|
||||
@ -0,0 +1,8 @@
|
||||
import { DefaultValue } from 'recoil';
|
||||
|
||||
export const guardRecoilDefaultValue = (
|
||||
candidate: any,
|
||||
): candidate is DefaultValue => {
|
||||
if (candidate instanceof DefaultValue) return true;
|
||||
return false;
|
||||
};
|
||||
Reference in New Issue
Block a user