-
+ {groups[index].isAccepted===true && "Przedmiot został zaakceptowany"} +
+ diff --git a/src/components/Statistics.tsx b/src/components/Statistics.tsx index ff4901a..26a8c87 100644 --- a/src/components/Statistics.tsx +++ b/src/components/Statistics.tsx @@ -1,4 +1,4 @@ -import React, { useState, useContext } from 'react'; +import React, { useState, useContext, useEffect } from 'react'; import Collapse from '@material-ui/core/Collapse'; import { ReactComponent as Expand } from '../assets/expand.svg'; import { Course, Group, GroupType } from '../types/index'; @@ -8,6 +8,8 @@ import { makeStyles } from '@material-ui/core/styles'; import DeleteIcon from '@material-ui/icons/Delete'; import { useMemo } from 'react'; import { dayMapping } from '../constants'; +import { axiosInstance } from '../utils/axiosInstance'; +import { SyncLoader } from 'react-spinners'; const StatisticsWrapper = styled.div` display: flex; @@ -25,70 +27,148 @@ const Row = styled.div` `; const StatisticBox = styled.div` -background-color:white; - width: 200px; - height: 200px; - margin: 10px; - border: 1px solid #000000; - border-radius: 38px; display: flex; flex-direction: column; - justify-content: space-around; + justify-content: center; align-items: center; - font-size: 22px; - padding:2px; - box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.75); + z-index: 20000; + font-size: 0.65vw; + line-height: normal; + border-radius: 2px; + width: 200px; + height: 200px; + margin: 5px; + padding: 5px 5px 0 5px; + text-align: center; + background-color: #ffe485; + box-shadow: 3px 3px 5px 0px rgba(189, 189, 189, 1); `; const StatisticNumber = styled.p` font-size: 52px; margin-top: 40px; - margin-bottom:0px; + margin-bottom: 0px; `; const StatisticText = styled.p` font-size: 18px; - text-align:center; - align-items:center; - justify-content:center; + text-align: center; + align-items: center; + justify-content: center; `; export const Statistics = () => { - return ( -Wymiana przedmiotami jest dostępna dopiero podczas drugiej tury
+Wymianie podlegają tylko zaakceptowane grupy przedmiotów
+Wymiana grupami odbywa się tylko w obrębie danego przedmiotu