1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00

chore: rename limit to RELEASE_TEMPLATES_DISPLAY_LIMIT

This commit is contained in:
Nuno Góis 2025-09-09 10:41:37 +01:00
parent 2c69c1088d
commit 726d1ab86e
No known key found for this signature in database
GPG Key ID: 71ECC689F1091765

View File

@ -12,7 +12,7 @@ import { HelpIcon } from 'component/common/HelpIcon/HelpIcon.tsx';
import useProjectOverview from 'hooks/api/getters/useProjectOverview/useProjectOverview.ts';
import { useState } from 'react';
const RELEASE_TEMPLATE_LIMIT = 5;
const RELEASE_TEMPLATE_DISPLAY_LIMIT = 5;
const StyledContainer = styled(Box)(() => ({
width: '100%',
@ -166,7 +166,7 @@ export const FeatureStrategyMenuCards = ({
const slicedTemplates = seeAllReleaseTemplates
? templates
: templates.slice(0, RELEASE_TEMPLATE_LIMIT);
: templates.slice(0, RELEASE_TEMPLATE_DISPLAY_LIMIT);
return (
<Box>
@ -205,7 +205,8 @@ export const FeatureStrategyMenuCards = ({
/>
))}
{slicedTemplates.length < templates.length &&
templates.length > RELEASE_TEMPLATE_LIMIT && (
templates.length >
RELEASE_TEMPLATE_DISPLAY_LIMIT && (
<StyledViewAllTemplates>
<Button
variant='text'