Add private profile banner

pull/5494/head
Kamran Ahmed 8 months ago
parent edaa108900
commit 7fd319a989
  1. 4
      src/components/UserPublicProfile/PrivateProfileBanner.tsx

@ -1,4 +1,5 @@
import type { GetPublicProfileResponse } from '../../api/user'; import type { GetPublicProfileResponse } from '../../api/user';
import { Lock } from 'lucide-react';
type PrivateProfileBannerProps = Pick< type PrivateProfileBannerProps = Pick<
GetPublicProfileResponse, GetPublicProfileResponse,
@ -10,7 +11,8 @@ export function PrivateProfileBanner(props: PrivateProfileBannerProps) {
if (isOwnProfile && profileVisibility === 'private') { if (isOwnProfile && profileVisibility === 'private') {
return ( return (
<div className="border-b border-yellow-400 bg-yellow-100 p-2 text-center text-sm font-medium"> <div className="-mb-4 -mt-5 rounded-lg border border-yellow-400 bg-yellow-100 p-2 text-center text-sm font-medium">
<Lock className="-mt-1 mr-1.5 inline-block h-4 w-4" />
Your profile is private. Only you can see this page. Your profile is private. Only you can see this page.
</div> </div>
); );

Loading…
Cancel
Save