diff --git a/packages/sanity/src/structure/panes/document/documentPanel/banners/Banner.tsx b/packages/sanity/src/structure/panes/document/documentPanel/banners/Banner.tsx index 994df8a855f..f6b8a70f1fe 100644 --- a/packages/sanity/src/structure/panes/document/documentPanel/banners/Banner.tsx +++ b/packages/sanity/src/structure/panes/document/documentPanel/banners/Banner.tsx @@ -16,22 +16,21 @@ interface BannerProps { content: ReactNode icon?: ComponentType tone?: CardTone - center?: boolean } export function Banner(props: BannerProps) { - const {action, center, content, icon: Icon, tone = 'transparent', ...rest} = props + const {action, content, icon: Icon, tone = 'transparent', ...rest} = props return ( - + {Icon && ( )} - + {content} diff --git a/packages/sanity/src/structure/panes/document/documentPanel/banners/PermissionCheckBanner.tsx b/packages/sanity/src/structure/panes/document/documentPanel/banners/PermissionCheckBanner.tsx index c3db3bf1266..04c46d357a0 100644 --- a/packages/sanity/src/structure/panes/document/documentPanel/banners/PermissionCheckBanner.tsx +++ b/packages/sanity/src/structure/panes/document/documentPanel/banners/PermissionCheckBanner.tsx @@ -58,7 +58,6 @@ export function PermissionCheckBanner({granted, requiredPermission}: PermissionC /> } - center action={ isOnlyViewer && roleRequestStatus && !requestStatusError && !requestStatusLoading ? {