add link to admin painel on user menu
This commit is contained in:
3
app/javascript/utils/notEmpty.ts
Normal file
3
app/javascript/utils/notEmpty.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// Use a type predicate function to avoid opting out of strict type checking: https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates
|
||||
export const notEmpty = <T>(value: T | null | undefined): value is T =>
|
||||
value !== null && value !== undefined
|
||||
Reference in New Issue
Block a user