payload-admin-bar
payload-admin-bar copied to clipboard
An admin bar for React apps using Payload
Update props to receive a authCollection slug when users aren't the default. Note: no breaking changes as authCollection is set to 'users' by default.
This issue is most likely not related to this component but I document it here in case someone else has the same issue. On page changes we pass different collection...
This is a client component but it does not set 'use client'. Therefore we have to wrap it in a client component first to be able to use it in...
A couple of strings are hardcoded and therefore cannot be translated: - 'Edit ' is hardcoded (see https://github.com/payloadcms/payload-admin-bar/blob/main/src/index.tsx#L278) - 'New ' is hardcoded (see https://github.com/payloadcms/payload-admin-bar/blob/main/src/index.tsx#L313) - 'Logout' is hardcoded (see...
This is not really an issue but a proposal for a performance improvement. The component is initially fetching "me" to detect if a user is logged in. For regular visitors...