Skip to content

Commit

Permalink
Update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
opoliarush committed Sep 6, 2024
1 parent 6338d2e commit 278087b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/components/Assets/AssetTypeList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { changeScope } from "../../../utils/actions/changeScope";
import { sendUserActionTrackingEvent } from "../../../utils/actions/sendUserActionTrackingEvent";
import { SCOPE_CHANGE_EVENTS } from "../../Main/types";
import { ChildIcon } from "../../common/icons/30px/ChildIcon";
import { Link } from "../../common/v3/Link";
import { AssetFilterQuery } from "../AssetsFilter/types";
import { NoDataMessage } from "../NoDataMessage";
import { actions } from "../actions";
Expand Down Expand Up @@ -227,12 +226,12 @@ export const AssetTypeList = ({
</span>
</s.EmptyStateTextContainer>
{data.parents.map((x) => (
<Link
<s.ParentLink
key={x.spanCodeObjectId}
onClick={() => handleAssetLinkClick(x.spanCodeObjectId)}
>
{x.displayName}
</Link>
</s.ParentLink>
))}
</>
}
Expand Down
11 changes: 10 additions & 1 deletion src/components/Assets/AssetTypeList/styles.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import styled from "styled-components";
import { footnoteRegularTypography } from "../../common/App/typographies";
import {
footnoteRegularTypography,
subscriptRegularTypography
} from "../../common/App/typographies";
import { Link } from "../../common/v3/Link";
import { NewEmptyState } from "../../common/v3/NewEmptyState";

export const List = styled.ul`
Expand Down Expand Up @@ -35,3 +39,8 @@ export const StyledEmptyState = styled(NewEmptyState)`
flex-grow: 1;
align-self: center;
`;

export const ParentLink = styled(Link)`
text-decoration: underline;
${subscriptRegularTypography}
`;

0 comments on commit 278087b

Please sign in to comment.