Skip to content

Commit

Permalink
[TASK] Fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisBurger committed Mar 31, 2024
1 parent 7a2aa38 commit 318ad94
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion web/app/credits/details/pageComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const CreditDetailsPage = () => {
label: t('credit.tab.rates'),
content: <CreditRateList elements={(data?.credit.credit.rates as CreditRateDataFragment[]) ?? []} />
}
], [data, loading]);
], [data, loading, t]);

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion web/app/credits/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const CreditsPage = () => {
</Grid>
)
}
], [router, t]);
], [router, t, currency]);

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion web/app/housingPrices/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const HousingPrices = () => {
</Grid>
)
}
], [deleteLoading, deleteObject, t]);
], [deleteLoading, deleteObject, t, currency]);

const [filter, setFilter] = useState<string>('');

Expand Down
2 changes: 1 addition & 1 deletion web/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function RootLayout({
document.addEventListener('reRenderAll', () => {
setRerender(reRender+1);
})
}, []);
}, [reRender]);

return (
<html lang="de">
Expand Down
2 changes: 1 addition & 1 deletion web/app/objects/details/pageComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const ObjectDetailsPage = () => {
</Stack>
)
}
], [data, loading, forecastYears]);
], [data, loading, forecastYears, t]);

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion web/app/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Page = () => {
// @ts-ignore
content: <SettingsTab dataObj={dataObj[el]} />
})
), [dataObj]);
), [dataObj, t]);

return (
<LoadingSpinner loading={loading}>
Expand Down
2 changes: 1 addition & 1 deletion web/components/EntityList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const EntityList = ({
if (sortModel) {
setSortModel(JSON.parse(sortModel.jsonString ?? "{}"));
}
}, [data, baseConfigPresetKey]);
}, [data, baseConfigPresetKey, findByKey]);

const [filterModel, setFilterModel] = useState<GridFilterModel|undefined>(undefined);
const [columnVisibilitModel, setColumnVisibilityModel] = useState<GridColumnVisibilityModel|undefined>(undefined);
Expand Down
2 changes: 1 addition & 1 deletion web/components/credit/CreditRateList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const CreditRateList = ({elements}: CreditRateListProps) => {
</Button>
)
}
], [deleteObject, t]);
], [deleteObject, t, currency]);

return (
<EntityList columns={cols} rows={elements} configPresetKey="creditRateList" />
Expand Down
2 changes: 1 addition & 1 deletion web/components/object/ObjectCreditChartCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const ObjectCreditChartCard = ({loading, data}: ObjectCreditChartCardProps) => {
const series = useMemo<BarChartData[]>(() => [
{dataKey: 'paid', label: t('common.creditRateSum')},
{dataKey: 'total', label: t('common.credit')},
], []);
], [t]);

return (
<Card variant="outlined">
Expand Down
2 changes: 1 addition & 1 deletion web/components/object/ObjectPriceChangesTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const ObjectPriceChangesTab = ({loading, data, fieldToAccess}: ObjectPriceChange
field: 'year',
headerName: t('common.year'),
}
], [t]);
], [t, currency]);

return (
<LoadingSpinner loading={loading}>
Expand Down
2 changes: 1 addition & 1 deletion web/components/object/ObjectRentSpreadTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const ObjectRentSpreadTab = ({expenses}: ObjectRentSpreadTabProps) => {
</Grid>
)
}
], [t]);
], [t, deleteMutation]);

return (
<Grid container direction="row" spacing={2}>
Expand Down
4 changes: 2 additions & 2 deletions web/components/settings/SettingsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ const SettingsTab = ({dataObj}: SettingsTabProps) => {
<>
<Typography level="h2">{t(`settings.section.${data[0]}`)}</Typography>
{Object.values(data[1]).map((el) => (
<FormControl>
<FormControl key={el.key}>
<FormLabel>{t(`settings.${el.key}`)}</FormLabel>
{el.options ? (
<Select value={el.value} onChange={(_, c) => updateSetting(`${el.key}`, `${c}`)}>
{el.options.map((option) => (
<SettingOption option={option as SettingOptionDataFragment} />
<SettingOption option={option as SettingOptionDataFragment} key={option?.key} />
))}
</Select>
) : (
Expand Down

0 comments on commit 318ad94

Please sign in to comment.