From ce4e11a291cbc74a43c44adba9755ee993f2b48e Mon Sep 17 00:00:00 2001 From: asal sahami <asalsahami22@gmail.com> Date: Thu, 8 Aug 2024 16:54:49 +0200 Subject: [PATCH] asal --- src/App/App.tsx | 41 +++++++++++++++++++++-------------------- src/contents/Graph.tsx | 3 +-- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/App/App.tsx b/src/App/App.tsx index 9d8e1bed..d266993e 100644 --- a/src/App/App.tsx +++ b/src/App/App.tsx @@ -5,6 +5,7 @@ import "../contents/example.css" import "./App.scss"; import 'beautiful-react-diagrams/styles.css'; import "bootstrap/dist/css/bootstrap.min.css"; +import "./Graph.css" import { Routes, Route } from "react-router-dom"; import { Footer } from "../components/Footer.tsx"; import { NotFound } from "../components/NotFound.tsx"; @@ -14,7 +15,7 @@ import { stringToSlug } from "../utils/stringToSlug.ts"; import { Villbuttonrow } from "../components/Buttons.tsx"; import "../utils/highlight.js"; import "./LoadingScreen.css"; -import { Description } from "../contents/description.tsx"; +//import { Description } from "../contents/description.tsx"; const App = () => { const pathMapping = getPathMapping(); @@ -63,26 +64,26 @@ const App = () => { } /> ))} - {/* Add a route for the Description component */} - <Route - path="/description" - element={ - <> - {/* Page content */} - <div className="container-fluid"> - <div className="row"> - <div className="col"> + //{/* Add a route for the Description component */} + //<Route + //path="/description" + //element={ + //<> + //{/* Page content */} + //<div className="container-fluid"> + //<div className="row"> + //<div className="col"> - <Description /> - <Villbuttonrow /> - </div> - <div className="col-1 d-none d-lg-block"> - {/* <!-- empty!--> */} - </div> - </div> - </div> - </> - } + //<Description /> + //<Villbuttonrow /> + //</div> + //<div className="col-1 d-none d-lg-block"> + //{/* <!-- empty!--> */} + //</div> + //</div> + //</div> + //</> + //} /> <Route diff --git a/src/contents/Graph.tsx b/src/contents/Graph.tsx index 480e9e05..ebbfbeaf 100644 --- a/src/contents/Graph.tsx +++ b/src/contents/Graph.tsx @@ -1,7 +1,6 @@ import React from 'react'; import { Pie } from 'react-chartjs-2'; import { Chart as ChartJS, ArcElement, Tooltip, Legend } from 'chart.js'; -import '../App/Graph.css'; ChartJS.register(ArcElement, Tooltip, Legend); @@ -34,7 +33,7 @@ const PieChart: React.FC = () => { 'rgba(153, 102, 255, 1)', 'rgba(255, 159, 64, 1)', ], - borderWidth: 1, + borderWidth: 0.5, }, ], }; -- GitLab