kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'update-group-tag-schema' into 'develop'
Change 'uses' to 'groups' in Tag schema See merge request soapbox-pub/soapbox!2474environments/review-develop-3zknud/deployments/3268
commit
c001a4ab76
|
@ -137,7 +137,7 @@ const GroupTagListItem = (props: IGroupMemberListItem) => {
|
|||
{intl.formatMessage(messages.total)}:
|
||||
{' '}
|
||||
<Text size='sm' theme='inherit' weight='semibold' tag='span'>
|
||||
{shortNumberFormat(tag.uses)}
|
||||
{shortNumberFormat(tag.groups)}
|
||||
</Text>
|
||||
</Text>
|
||||
</Stack>
|
||||
|
|
|
@ -29,7 +29,7 @@ const TagListItem = (props: ITagListItem) => {
|
|||
defaultMessage='Number of groups'
|
||||
/>
|
||||
:{' '}
|
||||
{tag.uses}
|
||||
{tag.groups}
|
||||
</Text>
|
||||
</Stack>
|
||||
</Link>
|
||||
|
|
|
@ -3,7 +3,7 @@ import z from 'zod';
|
|||
const groupTagSchema = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
uses: z.number().optional(),
|
||||
groups: z.number().optional(),
|
||||
url: z.string().optional(),
|
||||
pinned: z.boolean().optional().catch(false),
|
||||
visible: z.boolean().optional().default(true),
|
||||
|
|
Ładowanie…
Reference in New Issue