Skip to content

Commit

Permalink
Add more info link
Browse files Browse the repository at this point in the history
  • Loading branch information
hanapotski committed Jan 28, 2025
1 parent cb0613f commit 2fcde2b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import {
Button,
Chip,
Divider,
Link,
Stack,
Typography
Typography,
} from "@mui/material";
import Grid2 from "@mui/material/Unstable_Grid2";
import {
Expand Down Expand Up @@ -47,7 +48,7 @@ import {
useSearchCoordinates,
useUserCoordinates,
} from "../../../../appReducer";
import { success } from "../../../../theme/palette";
import { linkText, success } from "../../../../theme/palette";

const isLastOccurrenceInMonth = (tenantTimeZone) => {
const currentDate = new Date();
Expand Down Expand Up @@ -198,12 +199,13 @@ const StakeholderPreview = ({ stakeholder, onSelect, isDesktop }) => {
component="h2"
align="left"
fontWeight="bold"
sx={{
textDecoration: "underline",
}}
onClick={() => handleSelectOrganization(stakeholder)}
>
{stakeholder.name}
<Link
sx={{ color: "inherit" }}
onClick={() => handleSelectOrganization(stakeholder)}
>
{stakeholder.name}
</Link>
</Typography>
<Stack
direction="row"
Expand Down Expand Up @@ -345,7 +347,7 @@ const StakeholderPreview = ({ stakeholder, onSelect, isDesktop }) => {
</Typography>

<Typography
color="#4A80F5"
color={linkText}
align="right"
sx={{
"&:hover": { textDecoration: "underline" },
Expand Down Expand Up @@ -463,7 +465,18 @@ const StakeholderPreview = ({ stakeholder, onSelect, isDesktop }) => {
""
)}
</Stack>

<Stack alignItems="flex-end">
<Link
onClick={() => handleSelectOrganization(stakeholder)}
sx={{
color: linkText,
cursor: "pointer",
border: "none",
}}
>
more info...
</Link>
</Stack>
<Stack
direction="row"
justifyContent="start"
Expand Down
1 change: 1 addition & 0 deletions client/src/theme/palette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const linkHovered = "#004BA0";
export const darkGray = "#4D4D4D";
export const disabledText = "#999999";
export const tooltipHover = "rgba(51, 102, 153, 0.2)";
export const linkText = "#4A80F5";

//Icon and List Colors
export const foodPantry = "#0A7572";
Expand Down

0 comments on commit 2fcde2b

Please sign in to comment.