From 52f893c2393796e911b83b763ac059fd2211f99f Mon Sep 17 00:00:00 2001 From: emneirin Date: Sun, 21 May 2023 18:09:54 +0000 Subject: [PATCH] Auto formatted code --- frontend/pages/admin/communication.tsx | 44 ++++++++++++-------------- 1 file changed, 20 insertions(+), 24 deletions(-) diff --git a/frontend/pages/admin/communication.tsx b/frontend/pages/admin/communication.tsx index 5002fb56..0b209795 100644 --- a/frontend/pages/admin/communication.tsx +++ b/frontend/pages/admin/communication.tsx @@ -1,18 +1,17 @@ import AdminHeader from "@/components/header/adminHeader"; -import {EmailTemplate, getAllEmailTemplates} from "@/lib/email-template"; -import {ChangeEvent, useEffect, useState} from "react"; -import {Button, Col, Container, Form, Row} from "react-bootstrap"; +import { EmailTemplate, getAllEmailTemplates } from "@/lib/email-template"; +import { ChangeEvent, useEffect, useState } from "react"; +import { Button, Col, Container, Form, Row } from "react-bootstrap"; import TemplateAutocomplete from "@/components/autocompleteComponents/templateAutocomplete"; -import {BuildingInterface, getAllBuildings} from "@/lib/building"; -import {getAllUsers, User} from "@/lib/user"; +import { BuildingInterface, getAllBuildings } from "@/lib/building"; +import { getAllUsers, User } from "@/lib/user"; import UserAutoComplete from "@/components/autocompleteComponents/userAutocomplete"; -import {useRouter} from "next/router"; -import {withAuthorisation} from "@/components/withAuthorisation"; -import {Send} from "@mui/icons-material"; -import {handleError} from "@/lib/error"; +import { useRouter } from "next/router"; +import { withAuthorisation } from "@/components/withAuthorisation"; +import { Send } from "@mui/icons-material"; +import { handleError } from "@/lib/error"; -interface ParsedUrlQuery { -} +interface ParsedUrlQuery {} interface DataCommunicationQuery extends ParsedUrlQuery { template?: number; @@ -55,7 +54,7 @@ function AdminCommunication() { async function routeToBuildings(syndicId: number) { await router.push({ pathname: `data/buildings/`, - query: {syndic: selectedUser?.email}, + query: { syndic: selectedUser?.email }, }); } @@ -130,11 +129,11 @@ function AdminCommunication() { return ( <> - +

Communicatie extern

- +
- +
- +
-