cal/apps
Riyan Mohammad ccb7b1f9ac
Optimize conditional rendering (#9009)
* Optimize conditional rendering

Declared a variable called isAdmin. The check session.data?.user.role === "ADMIN" is repeated multiple times. You can store this value in a variable to avoid redundant checks.

* Update AppsLayout.tsx

Removed extra line space to match prettier format

* fix: lint error

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>

---------

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
Co-authored-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
2023-05-22 13:51:22 +00:00
..
docs Add changesets/cli to release embed (#8126) 2023-05-13 08:22:31 +00:00
storybook perf: lazy load tRPC routes (#8167) 2023-04-25 19:39:47 -03:00
swagger upgrade nextjs to 13.2 version and replace @next/font for in built ne… (#7440) 2023-02-28 16:38:46 -07:00
web Optimize conditional rendering (#9009) 2023-05-22 13:51:22 +00:00