1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-14 03:20:15 +01:00

more cleanups

This commit is contained in:
gluzzati 2024-03-22 00:41:14 +00:00
parent 5b7d99f9d6
commit ab9d6f6b44
8 changed files with 0 additions and 12 deletions

View File

@ -13,7 +13,6 @@ import Link from "next/link";
import { Dispatch, SetStateAction } from "react";
import { TbAt, TbMail, TbShare, TbSocial, TbSquare } from "react-icons/tb";
import { FormattedMessage } from "react-intl";
import useConfig from "../../../hooks/config.hook";
const webroot = process.env.WEBROOT || "";
@ -49,7 +48,6 @@ const ConfigurationNavBar = ({
setIsMobileNavBarOpened: Dispatch<SetStateAction<boolean>>;
}) => {
const { classes } = useStyles();
const config = useConfig();
return (
<Navbar
p="md"

View File

@ -4,13 +4,11 @@ import { TbDoorExit, TbSettings, TbUser } from "react-icons/tb";
import useUser from "../../hooks/user.hook";
import authService from "../../services/auth.service";
import { FormattedMessage, useIntl } from "react-intl";
import useConfig from "../../hooks/config.hook";
const webroot = process.env.WEBROOT || "";
const ActionAvatar = () => {
const { user } = useUser();
const config = useConfig();
return (
<Menu position="bottom-start" withinPortal>

View File

@ -2,12 +2,10 @@ import { ActionIcon, Menu } from "@mantine/core";
import Link from "next/link";
import { TbArrowLoopLeft, TbLink } from "react-icons/tb";
import { FormattedMessage } from "react-intl";
import useConfig from "../../hooks/config.hook";
const webroot = process.env.WEBROOT || "";
const NavbarShareMneu = () => {
const config = useConfig();
return (
<Menu position="bottom-start" withinPortal>
<Menu.Target>

View File

@ -12,7 +12,6 @@ import React, { Dispatch, SetStateAction, useEffect, useState } from "react";
import { FormattedMessage } from "react-intl";
import api from "../../services/api.service";
import Markdown from "markdown-to-jsx";
import useConfig from "../../hooks/config.hook";
const webroot = process.env.WEBROOT || "";
@ -38,7 +37,6 @@ const FilePreview = ({
mimeType: string;
}) => {
const [isNotSupported, setIsNotSupported] = useState(false);
const config = useConfig();
if (isNotSupported) return <UnSupportedFile />;
return (
<Stack>

View File

@ -9,7 +9,6 @@ import {
import Link from "next/link";
import Meta from "../components/Meta";
import { FormattedMessage } from "react-intl";
import useConfig from "../hooks/config.hook";
const webroot = process.env.WEBROOT || "";

View File

@ -10,7 +10,6 @@ import {
import Link from "next/link";
import Logo from "../../components/Logo";
import Meta from "../../components/Meta";
import useConfig from "../../hooks/config.hook";
const webroot = process.env.WEBROOT || "";

View File

@ -20,7 +20,6 @@ import * as yup from "yup";
import useTranslate from "../../../hooks/useTranslate.hook";
import authService from "../../../services/auth.service";
import toast from "../../../utils/toast.util";
import useConfig from "../../../hooks/config.hook";
const webroot = process.env.WEBROOT || "";

View File

@ -16,7 +16,6 @@ import { FormattedMessage } from "react-intl";
import Logo from "../components/Logo";
import Meta from "../components/Meta";
import useUser from "../hooks/user.hook";
import useConfig from "../hooks/config.hook";
const webroot = process.env.WEBROOT || "";