Skip to content

Commit

Permalink
feat: add underline to genome links in organisms list (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterckx committed Dec 12, 2024
1 parent be94f0c commit 6edb5d9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions app/components/common/StyledLink/styledLink.styles.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Link } from "@databiosphere/findable-ui/lib/components/Links/components/Link/link";
import styled from "@emotion/styled";

export const StyledLink = styled(Link)`
text-decoration: underline;
`;
1 change: 1 addition & 0 deletions app/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export { Link } from "@databiosphere/findable-ui/lib/components/Links/components
export { BasicCell } from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/BasicCell/basicCell";
export { NTagCell } from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/NTagCell/nTagCell";
export { CopyText } from "./common/CopyText/copyText";
export { StyledLink } from "./common/StyledLink/styledLink.styles";
export { AnalysisMethod } from "./Entity/components/AnalysisMethod/analysisMethod";
export { AnalysisMethods } from "./Entity/components/AnalysisMethods/analysisMethods";
export { AnalysisMethodsTitle } from "./Entity/components/AnalysisMethodsTitle/analysisMethodsTitle";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export const buildLevel = (
*/
export const buildOrganismTaxon = (
organism: BRCDataCatalogOrganism
): ComponentProps<typeof C.Link> => {
): ComponentProps<typeof C.StyledLink> => {
return {
label: organism.taxon,
url: getTaxonGenomesUrlObject(organism.taxon),
Expand Down
4 changes: 2 additions & 2 deletions site-config/brc-analytics/local/index/organismEntityConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export const organismEntityConfig: BRCEntityConfig<BRCDataCatalogOrganism> = {
columns: [
{
componentConfig: {
component: C.Link,
component: C.StyledLink,
viewBuilder: V.buildOrganismTaxon,
} as ComponentConfig<typeof C.Link, BRCDataCatalogOrganism>,
} as ComponentConfig<typeof C.StyledLink, BRCDataCatalogOrganism>,
header: BRC_DATA_CATALOG_CATEGORY_LABEL.TAXON,
id: BRC_DATA_CATALOG_CATEGORY_KEY.TAXON,
width: "auto",
Expand Down

0 comments on commit 6edb5d9

Please sign in to comment.