cal.pub0.org/apps/web
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
..
components Optimize conditional rendering (#9009) 2023-05-22 13:51:22 +00:00
docs
fonts feat: use `@next/font` for font loading (#6346) 2023-02-17 18:53:17 +01:00
lib Fully handle booking pages with conflicting themes being opened together (#8921) 2023-05-16 19:41:47 +00:00
pages fix: impersonation switch active state (#8924) 2023-05-19 21:23:12 +00:00
playwright Feat/onboarding video step connection (#8838) 2023-05-11 13:20:39 +00:00
public New Crowdin translations by Github Action 2023-05-19 00:45:20 +00:00
scripts
server/lib perf: tRPC procedures and middleware refactor (#8419) 2023-05-09 19:27:05 +00:00
styles Bug: Change color variable for dark mode (#8758) 2023-05-09 08:44:17 +01:00
test Add feature to offset start times for event types (#8506) 2023-05-17 11:56:55 +00:00
.eslintignore Upgrades yarn v1 to v3. Improves CI times by 2x (#7738) 2023-03-15 15:01:04 -07:00
.gitignore perf: remove sentry (#8334) 2023-04-17 22:22:44 +00:00
.nvmrc chore: bump node version to v18 (#7310) 2023-03-15 20:15:16 +00:00
.prettierignore Upgrades yarn v1 to v3. Improves CI times by 2x (#7738) 2023-03-15 15:01:04 -07:00
CHANGELOG.md Add changesets/cli to release embed (#8126) 2023-05-13 08:22:31 +00:00
calendso.yaml Removing unneeded endpoint (#8280) 2023-04-14 20:27:37 +00:00
middleware.ts Add log messages on cold/hot requests (#8420) 2023-04-21 12:08:59 -03:00
next-i18next.config.js
next.config.js [CAL-1545] replace heroicons with lucide.dev (#8599) 2023-05-17 12:47:44 +00:00
package.json Update package.json 2023-05-22 14:21:25 +01:00
postcss.config.js
project.toml
tailwind.config.js /insights (#6511) 2023-03-23 22:10:01 +00:00
tsconfig.json