Skip to content

Commit

Permalink
Small code fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl-OW committed Sep 24, 2024
1 parent 6045ac7 commit efd6c91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/react4xp/_entries/ArticleArchive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ChevronDown } from 'react-feather'
import { default as groupBy } from 'ramda/es/groupBy'
import axios from 'axios'
import { sanitize } from '../../lib/ssb/utils/htmlUtils'
import { generateImageUrls } from '../../lib/ssb/utils/generateImageUrls'
import { generateImageUrls } from '../../lib/ssb/utils/generateImageUrlUtils'
import { type ArticleArchiveProps, type ParsedArticleData } from '../../lib/types/partTypes/articleArchive'

function ArticleArchive(props: ArticleArchiveProps) {
Expand Down Expand Up @@ -134,7 +134,7 @@ function ArticleArchive(props: ArticleArchiveProps) {
{image && (
<Col className='col-12 d-flex justify-content-center'>
<img
src={generateImageUrls(image).imageMobileUrl}
src={image}
srcSet={`${generateImageUrls(image).imageMobileUrl} 600w,
${generateImageUrls(image).imageTabletUrl} 992w,
${image} 1180w`}
Expand Down
2 changes: 1 addition & 1 deletion src/tsconfig.react4xp.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"main/resources/**/*.tsx",
"main/resources/lib/types/**/*",
"main/resources/lib/ssb/utils/htmlUtils.ts",
"main/resources/lib/ssb/utils/generateImageUrls.ts",
"main/resources/lib/ssb/utils/generateImageUrlUtils.ts",
"main/**/*.d.ts", "main/resources/site/parts/highchartExpert/HighchartExpert.jsx", "main/resources/site/parts/highchart/Highchart.jsx", "main/resources/site/parts/highmap/Highmap.jsx", "main/resources/site/parts/nameSearch/nameSearch.jsx",
],
"exclude": [
Expand Down

0 comments on commit efd6c91

Please sign in to comment.