bigbuffet-rw/app/soapbox/features/ui/components/profile-fields-panel.tsx
marcin mikołajczak 81de0014d3 Change ESLint rules, lint
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-02-16 00:12:02 +01:00

27 lines
724 B
TypeScript

import React from 'react';
import { FormattedMessage } from 'react-intl';
import { Widget, Stack } from 'soapbox/components/ui';
import ProfileField from './profile-field';
import type { Account } from 'soapbox/types/entities';
interface IProfileFieldsPanel {
account: Account
}
/** Custom profile fields for sidebar. */
const ProfileFieldsPanel: React.FC<IProfileFieldsPanel> = ({ account }) => {
return (
<Widget title={<FormattedMessage id='profile_fields_panel.title' defaultMessage='Profile fields' />}>
<Stack space={4}>
{account.fields.map((field, i) => (
<ProfileField field={field} key={i} />
))}
</Stack>
</Widget>
);
};
export default ProfileFieldsPanel;