more cleanups
This commit is contained in:
parent
5b7d99f9d6
commit
ab9d6f6b44
|
@ -13,7 +13,6 @@ import Link from "next/link";
|
||||||
import { Dispatch, SetStateAction } from "react";
|
import { Dispatch, SetStateAction } from "react";
|
||||||
import { TbAt, TbMail, TbShare, TbSocial, TbSquare } from "react-icons/tb";
|
import { TbAt, TbMail, TbShare, TbSocial, TbSquare } from "react-icons/tb";
|
||||||
import { FormattedMessage } from "react-intl";
|
import { FormattedMessage } from "react-intl";
|
||||||
import useConfig from "../../../hooks/config.hook";
|
|
||||||
|
|
||||||
const webroot = process.env.WEBROOT || "";
|
const webroot = process.env.WEBROOT || "";
|
||||||
|
|
||||||
|
@ -49,7 +48,6 @@ const ConfigurationNavBar = ({
|
||||||
setIsMobileNavBarOpened: Dispatch<SetStateAction<boolean>>;
|
setIsMobileNavBarOpened: Dispatch<SetStateAction<boolean>>;
|
||||||
}) => {
|
}) => {
|
||||||
const { classes } = useStyles();
|
const { classes } = useStyles();
|
||||||
const config = useConfig();
|
|
||||||
return (
|
return (
|
||||||
<Navbar
|
<Navbar
|
||||||
p="md"
|
p="md"
|
||||||
|
|
|
@ -4,13 +4,11 @@ import { TbDoorExit, TbSettings, TbUser } from "react-icons/tb";
|
||||||
import useUser from "../../hooks/user.hook";
|
import useUser from "../../hooks/user.hook";
|
||||||
import authService from "../../services/auth.service";
|
import authService from "../../services/auth.service";
|
||||||
import { FormattedMessage, useIntl } from "react-intl";
|
import { FormattedMessage, useIntl } from "react-intl";
|
||||||
import useConfig from "../../hooks/config.hook";
|
|
||||||
|
|
||||||
const webroot = process.env.WEBROOT || "";
|
const webroot = process.env.WEBROOT || "";
|
||||||
|
|
||||||
const ActionAvatar = () => {
|
const ActionAvatar = () => {
|
||||||
const { user } = useUser();
|
const { user } = useUser();
|
||||||
const config = useConfig();
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Menu position="bottom-start" withinPortal>
|
<Menu position="bottom-start" withinPortal>
|
||||||
|
|
|
@ -2,12 +2,10 @@ import { ActionIcon, Menu } from "@mantine/core";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { TbArrowLoopLeft, TbLink } from "react-icons/tb";
|
import { TbArrowLoopLeft, TbLink } from "react-icons/tb";
|
||||||
import { FormattedMessage } from "react-intl";
|
import { FormattedMessage } from "react-intl";
|
||||||
import useConfig from "../../hooks/config.hook";
|
|
||||||
|
|
||||||
const webroot = process.env.WEBROOT || "";
|
const webroot = process.env.WEBROOT || "";
|
||||||
|
|
||||||
const NavbarShareMneu = () => {
|
const NavbarShareMneu = () => {
|
||||||
const config = useConfig();
|
|
||||||
return (
|
return (
|
||||||
<Menu position="bottom-start" withinPortal>
|
<Menu position="bottom-start" withinPortal>
|
||||||
<Menu.Target>
|
<Menu.Target>
|
||||||
|
|
|
@ -12,7 +12,6 @@ import React, { Dispatch, SetStateAction, useEffect, useState } from "react";
|
||||||
import { FormattedMessage } from "react-intl";
|
import { FormattedMessage } from "react-intl";
|
||||||
import api from "../../services/api.service";
|
import api from "../../services/api.service";
|
||||||
import Markdown from "markdown-to-jsx";
|
import Markdown from "markdown-to-jsx";
|
||||||
import useConfig from "../../hooks/config.hook";
|
|
||||||
|
|
||||||
const webroot = process.env.WEBROOT || "";
|
const webroot = process.env.WEBROOT || "";
|
||||||
|
|
||||||
|
@ -38,7 +37,6 @@ const FilePreview = ({
|
||||||
mimeType: string;
|
mimeType: string;
|
||||||
}) => {
|
}) => {
|
||||||
const [isNotSupported, setIsNotSupported] = useState(false);
|
const [isNotSupported, setIsNotSupported] = useState(false);
|
||||||
const config = useConfig();
|
|
||||||
if (isNotSupported) return <UnSupportedFile />;
|
if (isNotSupported) return <UnSupportedFile />;
|
||||||
return (
|
return (
|
||||||
<Stack>
|
<Stack>
|
||||||
|
|
|
@ -9,7 +9,6 @@ import {
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import Meta from "../components/Meta";
|
import Meta from "../components/Meta";
|
||||||
import { FormattedMessage } from "react-intl";
|
import { FormattedMessage } from "react-intl";
|
||||||
import useConfig from "../hooks/config.hook";
|
|
||||||
|
|
||||||
const webroot = process.env.WEBROOT || "";
|
const webroot = process.env.WEBROOT || "";
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ import {
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import Logo from "../../components/Logo";
|
import Logo from "../../components/Logo";
|
||||||
import Meta from "../../components/Meta";
|
import Meta from "../../components/Meta";
|
||||||
import useConfig from "../../hooks/config.hook";
|
|
||||||
|
|
||||||
const webroot = process.env.WEBROOT || "";
|
const webroot = process.env.WEBROOT || "";
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@ import * as yup from "yup";
|
||||||
import useTranslate from "../../../hooks/useTranslate.hook";
|
import useTranslate from "../../../hooks/useTranslate.hook";
|
||||||
import authService from "../../../services/auth.service";
|
import authService from "../../../services/auth.service";
|
||||||
import toast from "../../../utils/toast.util";
|
import toast from "../../../utils/toast.util";
|
||||||
import useConfig from "../../../hooks/config.hook";
|
|
||||||
|
|
||||||
const webroot = process.env.WEBROOT || "";
|
const webroot = process.env.WEBROOT || "";
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@ import { FormattedMessage } from "react-intl";
|
||||||
import Logo from "../components/Logo";
|
import Logo from "../components/Logo";
|
||||||
import Meta from "../components/Meta";
|
import Meta from "../components/Meta";
|
||||||
import useUser from "../hooks/user.hook";
|
import useUser from "../hooks/user.hook";
|
||||||
import useConfig from "../hooks/config.hook";
|
|
||||||
|
|
||||||
const webroot = process.env.WEBROOT || "";
|
const webroot = process.env.WEBROOT || "";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue