Skip to content

Commit

Permalink
Merge pull request #2570 from beckn/fix/all-apps-bugs
Browse files Browse the repository at this point in the history
fix(climateData): all apps bugs
  • Loading branch information
aniketceminds authored Nov 22, 2024
2 parents f3a193a + f6ee8b9 commit 305e00c
Show file tree
Hide file tree
Showing 22 changed files with 32 additions and 17 deletions.
2 changes: 1 addition & 1 deletion apps/dragon-foods/components/cart/cart.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
margin: 0 auto;

@media (min-width: 768px) {
max-width: 60%;
max-width: 75%;
}
}
1 change: 1 addition & 0 deletions apps/dragon-foods/components/cart/cart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const Cart: React.FC<CartProps> = ({
<Typography
variant="subTitleRegular"
text="Request Overview"
sx={{ paddingBottom: '20px' }}
/>
<CartList cartItems={cartItems} />
</Box>
Expand Down
2 changes: 1 addition & 1 deletion apps/dragon-foods/components/header/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const headerNames: PathnameObjectType = {
'/feedback': '',
'/profile': 'My Profile',
'/search': 'Search results',
'/checkout': 'Billing & Shipping'
'/checkout': 'Billing'
}

const headerFrenchNames: PathnameObjectType = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
margin: 0 auto;

@media (min-width: 768px) {
max-width: 60%;
max-width: 75%;
}
}
1 change: 1 addition & 0 deletions apps/earth-support-initiative/components/cart/cart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const Cart: React.FC<CartProps> = ({
<Typography
variant="subTitleRegular"
text="Request Overview"
sx={{ paddingBottom: '20px' }}
/>
<CartList cartItems={cartItems} />
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const headerNames: PathnameObjectType = {
'/feedback': '',
'/profile': 'My Profile',
'/search': 'Search results',
'/checkout': 'Billing & Shipping'
'/checkout': 'Billing'
}

const headerFrenchNames: PathnameObjectType = {
Expand Down
2 changes: 1 addition & 1 deletion apps/envirogrowth/components/cart/cart.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
margin: 0 auto;

@media (min-width: 768px) {
max-width: 60%;
max-width: 75%;
}
}
1 change: 1 addition & 0 deletions apps/envirogrowth/components/cart/cart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const Cart: React.FC<CartProps> = ({
variant="subTitleRegular"
text="Request Overview"
dataTest={testIds.request_overview}
sx={{ paddingBottom: '20px' }}
/>
<CartList cartItems={cartItems} />
</Box>
Expand Down
2 changes: 1 addition & 1 deletion apps/envirogrowth/components/header/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const headerNames: PathnameObjectType = {
'/feedback': '',
'/profile': 'My Profile',
'/search': 'Search results',
'/checkout': 'Billing & Shipping'
'/checkout': 'Billing'
}

const headerFrenchNames: PathnameObjectType = {
Expand Down
2 changes: 1 addition & 1 deletion apps/harmoni-aids/components/cart/cart.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
margin: 0 auto;

@media (min-width: 768px) {
max-width: 60%;
max-width: 75%;
}
}
1 change: 1 addition & 0 deletions apps/harmoni-aids/components/cart/cart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const Cart: React.FC<CartProps> = ({
<Typography
variant="subTitleRegular"
text="Request Overview"
sx={{ paddingBottom: '20px' }}
/>
<CartList cartItems={cartItems} />
</Box>
Expand Down
2 changes: 1 addition & 1 deletion apps/harmoni-aids/components/header/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const headerNames: PathnameObjectType = {
'/feedback': '',
'/profile': 'My Profile',
'/search': 'Search results',
'/checkout': 'Billing & Shipping'
'/checkout': 'Billing'
}

const headerFrenchNames: PathnameObjectType = {
Expand Down
2 changes: 1 addition & 1 deletion apps/sky-analytics/components/cart/cart.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
margin: 0 auto;

@media (min-width: 768px) {
max-width: 60%;
max-width: 75%;
}
}
1 change: 1 addition & 0 deletions apps/sky-analytics/components/cart/cart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const Cart: React.FC<CartProps> = ({
<Typography
variant="subTitleRegular"
text="Request Overview"
sx={{ paddingBottom: '20px' }}
/>
<CartList cartItems={cartItems} />
</Box>
Expand Down
2 changes: 1 addition & 1 deletion apps/sky-analytics/components/header/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const headerNames: PathnameObjectType = {
'/feedback': '',
'/profile': 'My Profile',
'/search': 'Search results',
'/checkout': 'Billing & Shipping'
'/checkout': 'Billing'
}

const headerFrenchNames: PathnameObjectType = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
margin: 0 auto;

@media (min-width: 768px) {
max-width: 60%;
max-width: 75%;
}
}
1 change: 1 addition & 0 deletions apps/state-forest-department/components/cart/cart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const Cart: React.FC<CartProps> = ({
<Typography
variant="subTitleRegular"
text="Request Overview"
sx={{ paddingBottom: '20px' }}
/>
<CartList cartItems={cartItems} />
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const headerNames: PathnameObjectType = {
'/feedback': '',
'/profile': 'My Profile',
'/search': 'Search results',
'/checkout': 'Billing & Shipping'
'/checkout': 'Billing'
}

const headerFrenchNames: PathnameObjectType = {
Expand Down
4 changes: 2 additions & 2 deletions apps/state-forest-department/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function Document() {
<Head>
<meta
name="description"
content="Dragon Foods"
content="State Forest Department"
/>
<link
rel="preconnect"
Expand All @@ -22,7 +22,7 @@ export default function Document() {
/>
<link
rel="shortcut icon"
href="/images/headerLogo.svg"
href="/images/StateForestDepartment.svg"
/>
</Head>
<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ItemDetails: React.FC<ItemDetailProps> = ({
<Box mr="1rem">
<Image
src={image}
alt={title}
alt={title.length > 15 ? `${title.substring(0, 15)}...` : title}
width="4rem"
height="4rem"
/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.hideScroll {
overflow-y: scroll; /* or auto, as per your requirements */
scrollbar-width: none; /* Hides scrollbar in Firefox */
-ms-overflow-style: none; /* Hides scrollbar in IE/Edge */
}

.hideScroll::-webkit-scrollbar {
display: none; /* Hides scrollbar in Chrome, Safari, and Opera */
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import CustomFilterIconComponent from '../cutomFilterIcon'
import { setLocalStorage } from '../../utils'
import { SearchAndDiscoverProps } from './searchAndDiscover.types'
import { testIds } from '@shared/dataTestIds'

import Styles from './searchAndDiscover.module.css'
const SearchAndDiscover: React.FC<SearchAndDiscoverProps> = ({
items,
searchProps,
Expand Down Expand Up @@ -73,7 +73,7 @@ const SearchAndDiscover: React.FC<SearchAndDiscoverProps> = ({

return (
<Box
className="hideScroll"
className={Styles.hideScroll}
maxH="calc(100vh - 95px)"
overflowY="scroll"
>
Expand Down

0 comments on commit 305e00c

Please sign in to comment.