Small UI adjustments
This commit is contained in:
parent
2384d20440
commit
0d2a392b52
13 changed files with 229 additions and 228 deletions
|
@ -1,17 +1,17 @@
|
||||||
import * as React from "react";
|
|
||||||
import {
|
import {
|
||||||
Body,
|
Body,
|
||||||
Container,
|
Container,
|
||||||
Head,
|
Head,
|
||||||
Heading,
|
Heading,
|
||||||
Html,
|
|
||||||
Preview,
|
|
||||||
Text,
|
|
||||||
Hr,
|
Hr,
|
||||||
Tailwind,
|
Html,
|
||||||
Section,
|
|
||||||
Img,
|
Img,
|
||||||
|
Preview,
|
||||||
|
Section,
|
||||||
|
Tailwind,
|
||||||
|
Text,
|
||||||
} from "@react-email/components";
|
} from "@react-email/components";
|
||||||
|
import * as React from "react";
|
||||||
|
|
||||||
interface GoodbyeTemplateProps {
|
interface GoodbyeTemplateProps {
|
||||||
name: string;
|
name: string;
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
import { type NextPage } from "next";
|
import { type GetServerSideProps, type NextPage } from "next";
|
||||||
import Image from "next/image";
|
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
import { type GetServerSideProps } from "next";
|
import Image from "next/image";
|
||||||
|
|
||||||
import { getServerAuthSession } from "../../server/auth";
|
|
||||||
import { api } from "~/utils/api";
|
|
||||||
import { signIn, useSession } from "next-auth/react";
|
import { signIn, useSession } from "next-auth/react";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { SiGoogle, SiGithub } from "react-icons/si";
|
|
||||||
import { FaShieldAlt } from "react-icons/fa";
|
import { FaShieldAlt } from "react-icons/fa";
|
||||||
|
import { SiGithub, SiGoogle } from "react-icons/si";
|
||||||
|
import { api } from "~/utils/api";
|
||||||
|
import { getServerAuthSession } from "../../server/auth";
|
||||||
|
|
||||||
export const getServerSideProps: GetServerSideProps = async (ctx) => {
|
export const getServerSideProps: GetServerSideProps = async (ctx) => {
|
||||||
const session = await getServerAuthSession(ctx);
|
const session = await getServerAuthSession(ctx);
|
||||||
|
@ -117,11 +116,14 @@ const ProfileBody: React.FC = () => {
|
||||||
<h2 className="card-title">Profile:</h2>
|
<h2 className="card-title">Profile:</h2>
|
||||||
{ sessionData.user.image && (
|
{ sessionData.user.image && (
|
||||||
<div className="indicator mx-auto m-4">
|
<div className="indicator mx-auto m-4">
|
||||||
|
{ sessionData.user.role === "ADMIN" && (
|
||||||
<span className="indicator-item indicator-bottom badge badge-primary">
|
<span className="indicator-item indicator-bottom badge badge-primary">
|
||||||
<div className="tooltip tooltip-primary" data-tip="Admin">
|
<div className="tooltip tooltip-primary" data-tip="Admin">
|
||||||
<FaShieldAlt className="text-xl" />
|
<FaShieldAlt className="text-xl" />
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
|
) }
|
||||||
|
|
||||||
<Image
|
<Image
|
||||||
className="mx-auto"
|
className="mx-auto"
|
||||||
src={ sessionData.user.image }
|
src={ sessionData.user.image }
|
||||||
|
|
|
@ -338,8 +338,7 @@ const RoomBody: React.FC = () => {
|
||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
key={ index }
|
key={ index }
|
||||||
className={`join-item ${
|
className={ `join-item ${getVoteForCurrentUser()?.value === scaleItem
|
||||||
getVoteForCurrentUser()?.value === scaleItem
|
|
||||||
? "btn btn-active btn-primary"
|
? "btn btn-active btn-primary"
|
||||||
: "btn"
|
: "btn"
|
||||||
}` }
|
}` }
|
||||||
|
|
Loading…
Add table
Reference in a new issue