Skip to content

Commit

Permalink
I AM SO SORRY KYLE THE ERROR SHOULD BE FIXED IM SO SO SO SO SORRY THI…
Browse files Browse the repository at this point in the history
…S WONT HAPPEN AGAIN IM SO SORRY KYLE
  • Loading branch information
SashankBalusu committed Feb 28, 2025
1 parent 3aae418 commit 4454c72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/PlantDetails/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Image from 'next/image';
import BPLogo from '@/assets/images/bp-logo.png'; // TODO: remove this

import COLORS from '@/styles/colors';
Expand All @@ -8,6 +7,7 @@ import { Plant } from '@/types/schema';
import { plantingTypeOptions } from '@/utils/dropdownOptions';
import CustomSelect from '../CustomSelect';
import DateInput from '../DateInput';
import { PlantImage } from './styles';

export default function PlantDetails({
plant,
Expand All @@ -30,10 +30,9 @@ export default function PlantDetails({
$justify="center"
$align="center"
>
<Image
<PlantImage
src={plant.img ?? BPLogo} // TODO: change the default image
alt={`Plant Image for ${plant.plant_name}`}
style={{ height: '120px', width: 'max-content' }}
/>
</Flex>
<Box $p="24px" $pb="0">
Expand Down
6 changes: 6 additions & 0 deletions components/PlantDetails/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import styled from 'styled-components';

export const PlantImage = styled.img`
width: max-content;
height: 120px;
`;

0 comments on commit 4454c72

Please sign in to comment.