feat: 🎸 优化了一些代码
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { useNavigate, useLocation } from "react-router-dom";
|
||||
import { mockData } from "@/data/mockData";
|
||||
import { Statistic } from "@arco-design/web-react";
|
||||
import IconFont from "@/components/IconFont";
|
||||
import Logo from "@/assets/images/Sidebar/logo.png";
|
||||
@@ -10,7 +9,6 @@ import "./index.css";
|
||||
const Sidebar = ({ isCollapsed, setIsCollapsed }) => {
|
||||
const navigate = useNavigate();
|
||||
const location = useLocation();
|
||||
const { user } = mockData;
|
||||
|
||||
const handleNavClick = (path) => {
|
||||
navigate(path);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import React from "react";
|
||||
import { getMonthDays } from "@/data/mockData";
|
||||
|
||||
const MonthView = ({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useEffect, useRef } from "react";
|
||||
import { useEffect, useRef } from "react";
|
||||
import { getWeekDays } from "@/data/mockData";
|
||||
|
||||
const WeekView = ({ currentDate, events, onDateClick, onEventClick }) => {
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import React from "react";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { mockData } from "@/data/mockData";
|
||||
import "./index.css";
|
||||
|
||||
const PersonalDataDisplay = () => {
|
||||
const navigate = useNavigate();
|
||||
const { studyProgress, classRanking, studyStats } = mockData;
|
||||
const { studyProgress, classRanking } = mockData;
|
||||
|
||||
// 点击跳转到个人档案,并传递上下文状态
|
||||
const handleNavigateToProfile = (sourceType) => {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
box-sizing: border-box;
|
||||
|
||||
.homework-page-content-list {
|
||||
width: 100%;
|
||||
width: 1120px;
|
||||
height: 360px;
|
||||
border-radius: 8px;
|
||||
background-color: #fff;
|
||||
|
||||
Reference in New Issue
Block a user