Skip to content

Commit

Permalink
delete border
Browse files Browse the repository at this point in the history
Signed-off-by: Qxisylolo <[email protected]>
  • Loading branch information
Qxisylolo authored and SuZhou-Joe committed Aug 14, 2024
1 parent e5323a0 commit ca37389
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ export const RecentWork = (props: { core: CoreStart; workspaceEnabled?: boolean
return options.map((option: string) => ({ label: option, value: option }));
}, [detailedSavedObjects]);

const capitalTheFirstLetter = function (recentAccessItem: DetailedRecentlyAccessedItem) {
return recentAccessItem.type.charAt(0).toUpperCase() + recentAccessItem.type.slice(1);
};

const itemsForDisplay = useMemo(() => {
const sortedResult = [...detailedSavedObjects]
.filter((item) => !item.error)
Expand Down Expand Up @@ -189,7 +193,7 @@ export const RecentWork = (props: { core: CoreStart; workspaceEnabled?: boolean
<EuiFlexItem grow={false}>
<EuiFlexGroup>
<EuiFlexItem>
<EuiFilterGroup style={{ borderRadius: '5px' }}>
<EuiFilterGroup>
{[recentlyViewed, recentlyUpdated].map((item) => (
<EuiFilterButton
hasActiveFilters={selectedSort === item}
Expand Down Expand Up @@ -243,8 +247,7 @@ export const RecentWork = (props: { core: CoreStart; workspaceEnabled?: boolean
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiText size="xs" color="subdued">
{recentAccessItem.type.charAt(0).toUpperCase() +
recentAccessItem.type.slice(1)}
{capitalTheFirstLetter(recentAccessItem)}
</EuiText>
</EuiFlexItem>
</EuiFlexGroup>
Expand Down

0 comments on commit ca37389

Please sign in to comment.