mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-29 17:39:41 +05:00
refactor: New Profile Card
feat: add Privacy Banner feat: add user roles
This commit is contained in:
parent
ea44bbf0e1
commit
d0990eb089
6 changed files with 543 additions and 239 deletions
18
app/components/Profile/Profile.PrivacyBanner.tsx
Normal file
18
app/components/Profile/Profile.PrivacyBanner.tsx
Normal file
|
@ -0,0 +1,18 @@
|
|||
import { unixToDate } from "#/api/utils";
|
||||
|
||||
export const ProfilePrivacyBanner = (props: { is_privacy: boolean }) => {
|
||||
return (
|
||||
<>
|
||||
{props.is_privacy && (
|
||||
<div className="flex flex-col justify-between w-full p-4 border border-gray-200 rounded-md md:flex-row bg-gray-50 dark:bg-gray-700 dark:border-gray-600">
|
||||
<div className="mb-4 md:mb-0 md:me-4">
|
||||
<p className="flex items-center text-sm font-normal text-gray-500 dark:text-gray-200">
|
||||
У пользователя установлены настройки приватности. Некоторая
|
||||
информация для вас может быть недоступна.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue