Commit 949f5c4f authored by Marek Veselý's avatar Marek Veselý
Browse files

Citadel fixes 3.0.2

parent c95a7aa7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
{
{
  "name": "@inject/codegen",
  "name": "@inject/codegen",
  "version": "3.0.1",
  "version": "3.0.2",
  "description": "GraphQL API Codegen Setup for the Inject Backend",
  "description": "GraphQL API Codegen Setup for the Inject Backend",
  "main": "index.js",
  "main": "index.js",
  "license": "MIT",
  "license": "MIT",
+1 −1
Original line number Original line Diff line number Diff line
{
{
  "name": "@inject/frontend",
  "name": "@inject/frontend",
  "version": "3.0.1",
  "version": "3.0.2",
  "description": "Main wrapper for rendering INJECT Frontend",
  "description": "Main wrapper for rendering INJECT Frontend",
  "main": "index.js",
  "main": "index.js",
  "license": "MIT",
  "license": "MIT",
+1 −1
Original line number Original line Diff line number Diff line
@@ -27,7 +27,7 @@ const overrideConfigClass = css`
  margin-top: 1rem;
  margin-top: 1rem;
`
`


const TEAMS_MAX = 20
const TEAMS_MAX = 50


interface ExerciseCreatorProps {
interface ExerciseCreatorProps {
  open: boolean
  open: boolean
+8 −2
Original line number Original line Diff line number Diff line
@@ -14,7 +14,10 @@ const SentByTeam = () => {
  const { exerciseId, teamId } = useParams(
  const { exerciseId, teamId } = useParams(
    '/instructor/:exerciseId/:teamId/email'
    '/instructor/:exerciseId/:teamId/email'
  )
  )
  const count = useGetEmailThreadUnreadCountSuspense(teamId, 'sent')
  const count = useGetEmailThreadUnreadCountSuspense(
    teamId,
    EmailSelection.SENT
  )
  return (
  return (
    <LinkButton
    <LinkButton
      link={[
      link={[
@@ -42,7 +45,10 @@ const ReceivedByTeam = () => {
  const { exerciseId, teamId } = useParams(
  const { exerciseId, teamId } = useParams(
    '/instructor/:exerciseId/:teamId/email'
    '/instructor/:exerciseId/:teamId/email'
  )
  )
  const count = useGetEmailThreadUnreadCountSuspense(teamId, 'received')
  const count = useGetEmailThreadUnreadCountSuspense(
    teamId,
    EmailSelection.RECEIVED
  )


  return (
  return (
    <LinkButton
    <LinkButton
+8 −2
Original line number Original line Diff line number Diff line
@@ -10,7 +10,10 @@ import { Outlet } from 'react-router-dom'


const Received = () => {
const Received = () => {
  const { exerciseId, teamId } = useParams('/trainee/:exerciseId/:teamId/email')
  const { exerciseId, teamId } = useParams('/trainee/:exerciseId/:teamId/email')
  const count = useGetEmailThreadUnreadCountSuspense(teamId, 'received')
  const count = useGetEmailThreadUnreadCountSuspense(
    teamId,
    EmailSelection.RECEIVED
  )
  return (
  return (
    <LinkButton
    <LinkButton
      link={[
      link={[
@@ -35,7 +38,10 @@ const Received = () => {


const Sent = () => {
const Sent = () => {
  const { exerciseId, teamId } = useParams('/trainee/:exerciseId/:teamId/email')
  const { exerciseId, teamId } = useParams('/trainee/:exerciseId/:teamId/email')
  const count = useGetEmailThreadUnreadCountSuspense(teamId, 'sent')
  const count = useGetEmailThreadUnreadCountSuspense(
    teamId,
    EmailSelection.SENT
  )


  return (
  return (
    <LinkButton
    <LinkButton
Loading