Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Sep 19, 2024
1 parent fcf5663 commit accdbb3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/app/About/AboutDescription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const AboutDescription: React.FC = () => {
if (!cryostatVersion) {
return;
}
const expr = /^(?<tag>v[0-9]+\.[0-9]+\.[0-9]+)(?:-snapshot)?$/;
const expr = /^(v[0-9]+\.[0-9]+\.[0-9]+)(?:-snapshot)?$/;
const result = cryostatVersion.match(expr);
if (!result) {
notificationsContext.warning(
Expand Down
4 changes: 2 additions & 2 deletions src/app/Dashboard/LayoutTemplateGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ export const LayoutTemplateGroup: React.FC<LayoutTemplateGroupProps> = ({
<Split>
<SplitItem>
<Title headingLevel="h2" size="lg" style={{ padding: '1em' }}>
{props.title} ({t('LayoutTemplateGroup.ITEMS', { count: props.templates.length })})
{t(props.title, { ns: 'common' })} ({t('LayoutTemplateGroup.ITEMS', { count: props.templates.length })})
</Title>
</SplitItem>
{props.title === t('SUGGESTED', { ns: 'common' }) && props.templates.length !== 1 && (
{props.title === 'Suggested' && props.templates.length !== 1 && (
<>
<SplitItem isFilled></SplitItem>
<SplitItem>
Expand Down
11 changes: 2 additions & 9 deletions src/app/Dashboard/LayoutTemplatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -626,20 +626,13 @@ export const LayoutTemplatePicker: React.FC<LayoutTemplatePickerProps> = ({ onTe
<Stack>
{allSearchableTemplateNames.length > 0 ? (
<>
{sortedFilteredFeatureLeveledTemplateLayoutGroup(t('SUGGESTED', { ns: 'common' }), [
BlankLayout,
...RecentTemplates,
])}
{sortedFilteredFeatureLeveledTemplateLayoutGroup('Suggested', [BlankLayout, ...RecentTemplates])}
{sortedFilteredFeatureLeveledTemplateLayoutGroup(
'Cryostat',
CryostatLayoutTemplates,
userSubmittedTemplates.length > 0,
)}
{sortedFilteredFeatureLeveledTemplateLayoutGroup(
t('USER_SUBMITTED', { ns: 'common' }),
userSubmittedTemplates,
false,
)}
{sortedFilteredFeatureLeveledTemplateLayoutGroup('User-submitted', userSubmittedTemplates, false)}
</>
) : (
<StackItem>
Expand Down

0 comments on commit accdbb3

Please sign in to comment.