Skip to content

Commit

Permalink
fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Yariki committed Mar 30, 2024
1 parent fda81e3 commit fb16ddf
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 131 deletions.
6 changes: 3 additions & 3 deletions dimria-fe/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "/static/css/main.75570617.css",
"main.js": "/static/js/main.9ebcd8b7.js",
"main.js": "/static/js/main.1c074831.js",
"ui5-webcomponents-sap-icons-v5.js": "/static/js/ui5-webcomponents-sap-icons-v5.833cb268.chunk.js",
"ui5-webcomponents-sap-icons-v4.js": "/static/js/ui5-webcomponents-sap-icons-v4.d3c1dd9a.chunk.js",
"static/js/6453.1cee94a1.chunk.js": "/static/js/6453.1cee94a1.chunk.js",
Expand Down Expand Up @@ -330,11 +330,11 @@
"ui5-webcomponents-react-messagebundle-zh_TW.js": "/static/js/ui5-webcomponents-react-messagebundle-zh_TW.4f52269b.chunk.js",
"index.html": "/index.html",
"main.75570617.css.map": "/static/css/main.75570617.css.map",
"main.9ebcd8b7.js.map": "/static/js/main.9ebcd8b7.js.map",
"main.1c074831.js.map": "/static/js/main.1c074831.js.map",
"6453.1cee94a1.chunk.js.map": "/static/js/6453.1cee94a1.chunk.js.map"
},
"entrypoints": [
"static/css/main.75570617.css",
"static/js/main.9ebcd8b7.js"
"static/js/main.1c074831.js"
]
}
2 changes: 1 addition & 1 deletion dimria-fe/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.9ebcd8b7.js"></script><link href="/static/css/main.75570617.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.1c074831.js"></script><link href="/static/css/main.75570617.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
108 changes: 0 additions & 108 deletions dimria-fe/build/static/js/main.9ebcd8b7.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion dimria-fe/build/static/js/main.9ebcd8b7.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion dimria-fe/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function App() {
useEffect(() => {
dispatch(fetchAdvertsStart(-1));
dispatch(fetchCitiesStart());
}, []);
}, [dispatch]);

return (
<>
Expand Down
7 changes: 3 additions & 4 deletions dimria-fe/src/Components/AdvertDetails/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {useDispatch, useSelector} from "react-redux";
import React, {forwardRef, useEffect} from "react";
import {fetchAdvertDetailsFailure, fetchAdvertDetailsStart} from "../../redux/adverts/advertSlices";
import {forwardRef, useEffect} from "react";
import { fetchAdvertDetailsStart} from "../../redux/adverts/advertSlices";
import {
BusyIndicator,
Button,
Expand All @@ -26,7 +26,6 @@ const AdvertDetailsModal = forwardRef<typeof Dialog, AdvertDetailsModalProps>((p

const isDetailsLoading = useSelector(selectDetailsLoading);
const advertDetailsDto = useSelector(selectDetails);
const loadingError = useSelector(fetchAdvertDetailsFailure);

useEffect(() => {

Expand Down Expand Up @@ -79,7 +78,7 @@ const AdvertDetailsModal = forwardRef<typeof Dialog, AdvertDetailsModalProps>((p
return (
photo.map((item) => (
<MediaGalleryItem key={index}>
<img src={item} alt="photo" />
<img src={item} alt={item} />
</MediaGalleryItem>
))
);
Expand Down
8 changes: 2 additions & 6 deletions dimria-fe/src/Components/AdvertList/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {selectAdverts, selectCities, selectCitiesLoading} from "../../redux/adverts/selectors";
import {useDispatch, useSelector} from "react-redux";
import {AnalyticalTable, Grid, Link, Select, Option} from "@ui5/webcomponents-react";
import {AnalyticalTable, Link, Select, Option} from "@ui5/webcomponents-react";
import React, { useEffect } from "react";
import {Icon} from "@ui5/webcomponents-react";
import "@ui5/webcomponents-icons/dist/AllIcons.js"
Expand Down Expand Up @@ -34,7 +34,7 @@ export const AdvertList = (props: AdvertListProps) => {
}

dispatch(fetchAdvertsStart(selectedCity));
},[selectedCity])
},[selectedCity, dispatch])

const columns = [
{
Expand Down Expand Up @@ -124,7 +124,3 @@ export const AdvertList = (props: AdvertListProps) => {
);

};

function dispatch(arg0: { payload: number; type: "advert/fetchAdvertsStart"; }) {
throw new Error("Function not implemented.");
}
2 changes: 0 additions & 2 deletions dimria-fe/src/Components/AdvertPrices/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import {AnalyticalTable, CommonProps} from "@ui5/webcomponents-react";
import {AdvertDto} from "../../models/AdvertDto";
import {render} from "@testing-library/react";


export interface AdvertPricesProps extends CommonProps {
advertDto: AdvertDto | null;
Expand Down
2 changes: 0 additions & 2 deletions dimria-fe/src/Components/AppShell/AppShellBar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import navBackIcon from '@ui5/webcomponents-icons/dist/nav-back.js';
import paletteIcon from '@ui5/webcomponents-icons/dist/palette.js';
import {
Button,
List,
ListMode,
ListPropTypes,
Expand Down
2 changes: 1 addition & 1 deletion dimria-fe/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import { Page, ThemeProvider} from '@ui5/webcomponents-react'
import { ThemeProvider} from '@ui5/webcomponents-react'
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
Expand Down
3 changes: 1 addition & 2 deletions dimria-fe/src/redux/adverts/advertSlices.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { PayloadAction, createSlice } from "@reduxjs/toolkit";
import { createSlice } from "@reduxjs/toolkit";
import {AdvertDto} from "../../models/AdvertDto";
import {AdvertDetailsDto} from "../../models/AdvertDetailsDto";
import {Action} from "../../models/types";
import { CityDto } from "../../models/CityDto";
import { fetchCities } from "./requests";


export interface AdvertsState {
Expand Down

0 comments on commit fb16ddf

Please sign in to comment.