Skip to content

Commit 944164d

Browse files
committed
some minor cosmetic fixes
1 parent 912c887 commit 944164d

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/ui/screens/benefit-page/components/RecursiveRulesTable.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,16 @@ function renderNode(
102102
const bg =
103103
node.status === 'ok' ? 'secondary.light' :
104104
node.status === 'violation' ? 'error.light' :
105-
'white.dark';
105+
'white.main';
106+
const border = node.status === 'missing' ? '1px solid #ccc' : '';
106107

107108
return (
108109
<VBox
109110
gap={2}
110111
sx={{
111112
backgroundColor: bg,
112113
padding: 2,
114+
border: border,
113115
borderRadius: theme.shape.borderRadius,
114116
boxShadow: '0px 1px 2px rgba(0, 0, 0, 0.25)',
115117
}}

src/ui/screens/benefit-page/hooks/useBuildCategoryTitles.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const useBuildCategoryTitles = (id, language) => {
2121
if (categories.length === 0 || !topicsData) return null;
2222
return categories.map((categoryUri) => {
2323
const topic = topicsData.find((topic) => topic.id === categoryUri);
24-
return topic ? topic.title[language] : '';
25-
});
24+
return topic ? topic.title[language] : false;
25+
}).filter(Boolean);
2626
}, [categories, topicsData, language]);
2727
};
2828

src/ui/screens/onboarding-pages/choice/OnboardingChoice.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const OnboardingChoice = () => {
2525
{t('app.discoverChoice.text')}
2626
</Typography>
2727
</HBox>
28-
<HBox sx={{ width: '506px' }}>
28+
<HBox sx={{ maxWidth: '506px' }}>
2929
<TileButton
3030
variant={'yellowContained'}
3131
title={'app.discoverChoice.quickCheck'}
@@ -48,9 +48,6 @@ const OnboardingChoice = () => {
4848
size='small'
4949
/>
5050
</VBox>
51-
<HBox sx={{ width: '506px' }}>
52-
53-
</HBox>
5451
</VBox>
5552
</AppScreenWrapperContainer>
5653
</Layout >

0 commit comments

Comments
 (0)