kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Add back 'uses' attribute for specific use-case
rodzic
f8d31aa505
commit
ad6f237a9d
|
@ -137,7 +137,7 @@ const GroupTagListItem = (props: IGroupMemberListItem) => {
|
||||||
{intl.formatMessage(messages.total)}:
|
{intl.formatMessage(messages.total)}:
|
||||||
{' '}
|
{' '}
|
||||||
<Text size='sm' theme='inherit' weight='semibold' tag='span'>
|
<Text size='sm' theme='inherit' weight='semibold' tag='span'>
|
||||||
{shortNumberFormat(tag.groups)}
|
{shortNumberFormat(tag.uses)}
|
||||||
</Text>
|
</Text>
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
|
@ -5,6 +5,7 @@ const groupTagSchema = z.object({
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
groups: z.number().optional(),
|
groups: z.number().optional(),
|
||||||
url: z.string().optional(),
|
url: z.string().optional(),
|
||||||
|
uses: z.number().optional(),
|
||||||
pinned: z.boolean().optional().catch(false),
|
pinned: z.boolean().optional().catch(false),
|
||||||
visible: z.boolean().optional().default(true),
|
visible: z.boolean().optional().default(true),
|
||||||
});
|
});
|
||||||
|
|
Ładowanie…
Reference in New Issue