WEB APP: P8PSVG - удалена лишняя консольная выдача, доработан пример

This commit is contained in:
Mikhail Chechnev 2024-05-09 20:50:43 +03:00
parent dca2a12d3b
commit 4e1cb3cf89
2 changed files with 2 additions and 3 deletions

View File

@ -70,7 +70,6 @@ const P8PSVG = ({ data, items, onClick, style }) => {
//При обновлении данных //При обновлении данных
useEffect(() => { useEffect(() => {
console.log(items);
loadSVG(); loadSVG();
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
}, [data, items]); }, [data, items]);

View File

@ -17,13 +17,13 @@ import { P8PSVG } from "../../components/p8p_svg"; //Интерактивные
//--------- //---------
//Адрес тестового изображения //Адрес тестового изображения
const SAMPLE_URL = "http://localhost:8080/P8WebClient/Modules/p8-panels/img/sample.svg"; const SAMPLE_URL = "img/sample.svg";
//Стили //Стили
const STYLES = { const STYLES = {
CONTAINER: { textAlign: "center", paddingTop: "20px" }, CONTAINER: { textAlign: "center", paddingTop: "20px" },
TITLE: { paddingBottom: "15px" }, TITLE: { paddingBottom: "15px" },
SVG: { width: "95vw", height: "60vw", display: "flex", justifyContent: "center" } SVG: { width: "95vw", height: "30vw", display: "flex", justifyContent: "center" }
}; };
//----------- //-----------