mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 01:46:58 +01:00
Fix buttons / dropdown values
This commit is contained in:
parent
6b381e7157
commit
e8d8a8a84a
@ -30,7 +30,7 @@ export function ReportDeleteButton({
|
||||
|
||||
return (
|
||||
<ModalTrigger>
|
||||
<Button variant="quiet">
|
||||
<Button>
|
||||
<Icon>
|
||||
<Icons.Trash />
|
||||
</Icon>
|
||||
|
@ -25,7 +25,7 @@ export function TeamMemberEditButton({
|
||||
|
||||
return (
|
||||
<ModalTrigger>
|
||||
<Button variant="quiet">
|
||||
<Button>
|
||||
<Icon>
|
||||
<Icons.Edit />
|
||||
</Icon>
|
||||
|
@ -11,7 +11,7 @@ import {
|
||||
SubmitButton,
|
||||
} from 'react-basics';
|
||||
|
||||
export function UserAddForm({
|
||||
export function TeamMemberEditForm({
|
||||
teamId,
|
||||
userId,
|
||||
role,
|
||||
@ -41,7 +41,7 @@ export function UserAddForm({
|
||||
|
||||
const renderValue = (value: string) => {
|
||||
if (value === ROLES.teamMember) {
|
||||
return formatMessage(labels.teamMember);
|
||||
return formatMessage(labels.member);
|
||||
}
|
||||
if (value === ROLES.teamViewOnly) {
|
||||
return formatMessage(labels.viewOnly);
|
||||
@ -58,7 +58,7 @@ export function UserAddForm({
|
||||
minWidth: '250px',
|
||||
}}
|
||||
>
|
||||
<Item key={ROLES.teamMember}>{formatMessage(labels.teamMember)}</Item>
|
||||
<Item key={ROLES.teamMember}>{formatMessage(labels.member)}</Item>
|
||||
<Item key={ROLES.teamViewOnly}>{formatMessage(labels.viewOnly)}</Item>
|
||||
</Dropdown>
|
||||
</FormInput>
|
||||
@ -75,4 +75,4 @@ export function UserAddForm({
|
||||
);
|
||||
}
|
||||
|
||||
export default UserAddForm;
|
||||
export default TeamMemberEditForm;
|
||||
|
@ -35,7 +35,7 @@ export function TeamMemberRemoveButton({
|
||||
|
||||
return (
|
||||
<ModalTrigger>
|
||||
<Button variant="quiet">
|
||||
<Button>
|
||||
<Icon>
|
||||
<Icons.Close />
|
||||
</Icon>
|
||||
|
@ -28,6 +28,7 @@ export const labels = defineMessages({
|
||||
created: { id: 'label.created', defaultMessage: 'Created' },
|
||||
edit: { id: 'label.edit', defaultMessage: 'Edit' },
|
||||
name: { id: 'label.name', defaultMessage: 'Name' },
|
||||
member: { id: 'label.member', defaultMessage: 'Member' },
|
||||
members: { id: 'label.members', defaultMessage: 'Members' },
|
||||
accessCode: { id: 'label.access-code', defaultMessage: 'Access code' },
|
||||
teamId: { id: 'label.team-id', defaultMessage: 'Team ID' },
|
||||
|
Loading…
Reference in New Issue
Block a user