Move home and classroom screen to student folder
This commit is contained in:
parent
0f3fe5494f
commit
00ab43aaf5
16 changed files with 16 additions and 15 deletions
|
@ -1,9 +1,10 @@
|
||||||
import { Navigate, Route, Routes } from 'react-router-dom';
|
import { Navigate, Route, Routes } from 'react-router-dom';
|
||||||
|
|
||||||
import Home from '../screens/Home';
|
import Home from '../screens/student/Home';
|
||||||
|
import Classroom from '../screens/student/Classroom';
|
||||||
|
|
||||||
import Information from '../screens/Information';
|
import Information from '../screens/Information';
|
||||||
import Calendar from '../screens/Calendar';
|
import Calendar from '../screens/Calendar';
|
||||||
import Classroom from '../screens/Classroom';
|
|
||||||
import Assignment from '../screens/Assignment';
|
import Assignment from '../screens/Assignment';
|
||||||
import Profile from '../screens/Profile';
|
import Profile from '../screens/Profile';
|
||||||
|
|
||||||
|
|
|
@ -8,11 +8,11 @@ import {
|
||||||
Stack,
|
Stack,
|
||||||
Typography,
|
Typography,
|
||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
import AnnouncementCard from '../../../components/AnnouncementCard';
|
import AnnouncementCard from '../../../../components/AnnouncementCard';
|
||||||
import { createArrayFrom1ToN } from '../../../utils/createArrayFrom1ToN';
|
import { createArrayFrom1ToN } from '../../../../utils/createArrayFrom1ToN';
|
||||||
|
|
||||||
import styles from './styles';
|
import styles from './styles';
|
||||||
import jitsiLogo from '../../../assets/jitsi.svg';
|
import jitsiLogo from '../../../../assets/jitsi.svg';
|
||||||
|
|
||||||
function AnnouncementsTab({ layoutType, announcementsTabData, classroom }) {
|
function AnnouncementsTab({ layoutType, announcementsTabData, classroom }) {
|
||||||
const { container, emptyStateContainer } = styles[layoutType];
|
const { container, emptyStateContainer } = styles[layoutType];
|
|
@ -1,6 +1,6 @@
|
||||||
import { Container, Link, Skeleton, Stack, Typography } from '@mui/material';
|
import { Container, Link, Skeleton, Stack, Typography } from '@mui/material';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import { capitalizeFirstLetter } from '../../../utils/capitalizeFirstLetter';
|
import { capitalizeFirstLetter } from '../../../../utils/capitalizeFirstLetter';
|
||||||
import styles from './styles';
|
import styles from './styles';
|
||||||
|
|
||||||
function AssignmentsTab({ assignmentsTabData, layoutType }) {
|
function AssignmentsTab({ assignmentsTabData, layoutType }) {
|
|
@ -1,5 +1,5 @@
|
||||||
import { Avatar, Container, Skeleton, Stack, Typography } from '@mui/material';
|
import { Avatar, Container, Skeleton, Stack, Typography } from '@mui/material';
|
||||||
import { createArrayFrom1ToN } from '../../../utils/createArrayFrom1ToN';
|
import { createArrayFrom1ToN } from '../../../../utils/createArrayFrom1ToN';
|
||||||
import styles from './styles';
|
import styles from './styles';
|
||||||
|
|
||||||
function PeopleTab({ layoutType, peopleTabData }) {
|
function PeopleTab({ layoutType, peopleTabData }) {
|
|
@ -1,7 +1,7 @@
|
||||||
import { useCallback, useEffect, useState } from 'react';
|
import { useCallback, useEffect, useState } from 'react';
|
||||||
import { useParams } from 'react-router-dom';
|
import { useParams } from 'react-router-dom';
|
||||||
import { useUser } from '../../context/user';
|
import { useUser } from '../../../context/user';
|
||||||
import useLayoutType from '../../hooks/useLayoutType';
|
import useLayoutType from '../../../hooks/useLayoutType';
|
||||||
import { TAB_OPTIONS } from './tabOptions';
|
import { TAB_OPTIONS } from './tabOptions';
|
||||||
import View from './View';
|
import View from './View';
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import { Container, Grid, Skeleton, Stack } from '@mui/material';
|
import { Container, Grid, Skeleton, Stack } from '@mui/material';
|
||||||
|
|
||||||
import ClassCard from '../../components/ClassCard';
|
import ClassCard from '../../../components/ClassCard';
|
||||||
import AssignmentCard from '../../components/AssignmentCard';
|
import AssignmentCard from '../../../components/AssignmentCard';
|
||||||
|
|
||||||
import styles from './styles';
|
import styles from './styles';
|
||||||
import { createArrayFrom1ToN } from '../../utils/createArrayFrom1ToN';
|
import { createArrayFrom1ToN } from '../../../utils/createArrayFrom1ToN';
|
||||||
|
|
||||||
function View({
|
function View({
|
||||||
layoutType,
|
layoutType,
|
|
@ -1,8 +1,8 @@
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
import { useUser } from '../../context/user';
|
import { useUser } from '../../../context/user';
|
||||||
import { useDocumentTitle } from '../../hooks/useDocumentTitle';
|
import { useDocumentTitle } from '../../../hooks/useDocumentTitle';
|
||||||
import useLayoutType from '../../hooks/useLayoutType';
|
import useLayoutType from '../../../hooks/useLayoutType';
|
||||||
import View from './View';
|
import View from './View';
|
||||||
|
|
||||||
function Home() {
|
function Home() {
|
Loading…
Reference in a new issue