diff --git a/src/screens/Assignment/View.js b/src/screens/Assignment/View.js
index 25fcbe4..1829f22 100644
--- a/src/screens/Assignment/View.js
+++ b/src/screens/Assignment/View.js
@@ -3,55 +3,45 @@ import { Box, Button, Container, Stack, Typography } from '@mui/material';
import dayjs from 'dayjs';
import { capitalizeFirstLetter } from '../../utils/capitalizeFirstLetter';
+import styles from './styles';
+
function View({ assignment, dropzone, layoutType }) {
+ const {
+ container,
+ headerStack,
+ title,
+ classroomColorStack,
+ classroomColor,
+ subHeaderStack,
+ subHeaderTypography,
+ descriptionStack,
+ dropzoneStack,
+ dropzoneBox,
+ button,
+ } = styles[layoutType];
+
return assignment === null ? (
Loading...
) : (
-
-
-
+
+
+
{assignment.title}
-
+
{assignment.classrooms.map(c => (
-
+
))}
{assignment.classrooms.map(c => c.name).join(', ')}
-
-
+
+
Valor:
{assignment.scores.map(s => s.value).join(', ')} pts
-
+
Data de entrega:
{capitalizeFirstLetter(
dayjs(assignment.dueDate).format('dddd, DD/MM | HH:mm[h]')
@@ -59,39 +49,17 @@ function View({ assignment, dropzone, layoutType }) {
-
+
{parse(assignment.description)}
;
-
+
{/* TODO: Create a custom component for dropzone */}
-
+
Clique ou arraste um arquivo até aqui
@@ -103,7 +71,7 @@ function View({ assignment, dropzone, layoutType }) {
))}