cal.pub0.org/apps/web/components
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
..
apps Optimize conditional rendering (#9009) 2023-05-22 13:51:22 +00:00
auth add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
availability Replace react icons with lucidedev (#8146) 2023-04-12 17:26:31 +02:00
booking Replacing bookingAttendees for bookingUid (#8997) 2023-05-22 09:30:24 +00:00
dialog Remove Intl.Provider (#8208) 2023-04-19 21:38:06 +00:00
error New Booker Component (preparations for booker atom) (#6792) 2023-04-24 16:32:30 +02:00
eventtype Replacement PR for closed PR #8960 (#8980) 2023-05-19 20:30:30 +00:00
getting-started [CAL-1545] replace heroicons with lucide.dev (#8599) 2023-05-17 12:47:44 +00:00
integrations Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
layouts Feat/tokens + darkmode + theme support (#7876) 2023-04-05 18:14:46 +00:00
schemas added EventReservationSchema to success page (#5777) 2022-12-05 21:35:44 +00:00
security Replace react icons with lucidedev (#8146) 2023-04-12 17:26:31 +02:00
settings Bug/checkbox calendar sync state (#8677) 2023-05-09 17:53:23 +01:00
setup Replace react icons with lucidedev (#8146) 2023-04-12 17:26:31 +02:00
team/screens Gitpod setup And Bio Detail Overflow Bug Fixed (#8824) 2023-05-15 13:18:31 +00:00
ui [CAL-1545] replace heroicons with lucide.dev (#8599) 2023-05-17 12:47:44 +00:00
AddToHomescreen.tsx Replace react icons with lucidedev (#8146) 2023-04-12 17:26:31 +02:00
AppListCard.tsx Replace react icons with lucidedev (#8146) 2023-04-12 17:26:31 +02:00
AppsShell.tsx
BookingsShell.tsx
Embed.tsx [CAL-1095] Embed modal (floating pop up button) - UI/layout/spacing issues (#8217) 2023-05-02 15:57:01 -03:00
Gates.tsx Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
I18nLanguageHandler.tsx Remove getDirFromLang, in favour of doing this in the I18nLanguageHan… (#8425) 2023-04-21 00:45:22 +00:00
Loader.tsx
NavTabs.tsx perf: reduce bundle size (#8337) 2023-04-19 19:45:08 +05:30
PageWrapper.tsx Remove css vars handling from PageWrapper. It was removed from _app.tsx earlier (#8401) 2023-04-20 17:01:21 -03:00
SettingsShell.tsx Event Type: Title not displayed in the mobile view (#7451) 2023-04-19 13:17:54 -07:00