Skip to content

Commit

Permalink
Merge pull request #654 from Klimatbyran/staging
Browse files Browse the repository at this point in the history
Deploy to production
  • Loading branch information
Greenheart authored Jun 19, 2024
2 parents 01030d4 + 4a0afd1 commit 708d11d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/CompanyView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const ComparisonContainer = styled.div`
position: relative;
border-radius: 8px;
display: flex;
padding-bottom: 2rem;
`

type CompanyViewProps = {
Expand Down
1 change: 1 addition & 0 deletions components/RegionalView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const ComparisonContainer = styled.div<{ dataView: string }>`
display: flex;
margin-top: ${({ dataView }) => (dataView === 'karta' ? '0' : '56px')};
min-height: 400px;
padding-bottom: 2rem;
@media only screen and (${devices.tablet}) {
min-height: 520px;
Expand Down
2 changes: 1 addition & 1 deletion data/companies/company-data.json

Large diffs are not rendered by default.

Binary file modified data/companies/companyData.xlsx
Binary file not shown.
9 changes: 9 additions & 0 deletions utils/createMunicipalityList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,15 @@ export const municipalityColumns = (
}
}

if (datasetKey === 'upphandlingarna') {
return (rowDataA: Row<RowData>, rowDataB: Row<RowData>) => {
const aProcurementDemands = rowDataA.original.formattedDataPoint
const bProcurementDemands = rowDataB.original.formattedDataPoint

return aProcurementDemands.localeCompare(bProcurementDemands)
}
}

// By default, use the standard @tanstack/table sorting functions.
return undefined
}
Expand Down

0 comments on commit 708d11d

Please sign in to comment.