Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/AppIcon/AppIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ import {
LiaTshirtSolid,
} from 'react-icons/lia';
import { MdOutlineLockReset } from 'react-icons/md';
import { LuSigma, LuMails } from 'react-icons/lu';
import { LuSigma } from 'react-icons/lu';
import { PiCookingPotLight, PiShareNetwork } from 'react-icons/pi';
import CircleIcon from './circle.svg?react';
import VotingIcon from './voting.svg?react';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
ListItemButton,
ListItemText,
Skeleton,
Typography,
} from '@mui/material';
import { forwardRef, useCallback, useEffect, useImperativeHandle, useState } from 'react';
import { useTranslation } from 'react-i18next';
Expand Down
3 changes: 1 addition & 2 deletions src/components/Buttons/AddIdeas/AddIdeasButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ import {
ListItemButton,
ListItemText,
Skeleton,
Typography,
} from '@mui/material';
import { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
import { forwardRef, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useParams } from 'react-router-dom';

Expand Down
1 change: 0 additions & 1 deletion src/components/Buttons/AddRooms/AddRoomsButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
ListItemButton,
ListItemText,
Skeleton,
Typography,
} from '@mui/material';
import { forwardRef, useCallback, useEffect, useImperativeHandle, useState } from 'react';
import { useTranslation } from 'react-i18next';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Buttons/CodeButton/CodeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import AppIcon from '@/components/AppIcon';
import { getRuntimeConfig } from '@/config';
import { useAppStore } from '@/store';
import { announceToScreenReader, localStorageGet } from '@/utils';
import { Button, ButtonProps, Divider } from '@mui/material';
import { Button, ButtonProps } from '@mui/material';
import { FC } from 'react';
import { useTranslation } from 'react-i18next';

Expand Down
3 changes: 1 addition & 2 deletions src/components/Buttons/DeleteButton/DeleteButton.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { ConfirmDialog } from '@/components';
import AppIconButton from '@/components/AppIconButton';
import { SettingNamesType } from '@/types/SettingsTypes';
import { WarningAmber } from '@mui/icons-material';
import { IconButtonProps, Stack, Typography } from '@mui/material';
import { forwardRef, useRef, useState } from 'react';
import { forwardRef, useState } from 'react';
import { useTranslation } from 'react-i18next';

interface Props extends IconButtonProps {
Expand Down
1 change: 0 additions & 1 deletion src/components/ChangePassword/ChangePassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { useForm, useWatch } from 'react-hook-form';
import { useTranslation } from 'react-i18next';
import * as yup from 'yup';
import AppIconButton from '../AppIconButton';
import AppIcon from '../AppIcon';
import { useNavigate } from 'react-router-dom';
import { useAppStore } from '@/store';

Expand Down
2 changes: 1 addition & 1 deletion src/components/DataFields/GroupField.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getGroups } from '@/services/groups';
import { SelectOptionsType } from '@/types/SettingsTypes';
import { Autocomplete, BaseTextFieldProps, CircularProgress, TextField } from '@mui/material';
import { Autocomplete, BaseTextFieldProps, TextField } from '@mui/material';
import { useEffect, useState } from 'react';
import { Control, Controller } from 'react-hook-form';
import { useTranslation } from 'react-i18next';
Expand Down
2 changes: 1 addition & 1 deletion src/components/DataFields/SelectField.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PossibleFields } from '@/types/Scopes';
import { SelectOptionsType } from '@/types/SettingsTypes';
import { FormControl, MenuItem, Paper, TextField } from '@mui/material';
import { FormControl, MenuItem, TextField } from '@mui/material';
import { Control, Controller } from 'react-hook-form-mui';
import { useTranslation } from 'react-i18next';

Expand Down
2 changes: 1 addition & 1 deletion src/components/DataFields/StatusField.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { STATUS, statusOptions } from '@/utils';
import { STATUS } from '@/utils';
import { MenuItem, TextField, Typography } from '@mui/material';
import { amber, blueGrey, green, red } from '@mui/material/colors';
import { Control, Controller } from 'react-hook-form-mui';
Expand Down
2 changes: 0 additions & 2 deletions src/components/DataForms/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import AnnouncementForms from './AnnouncementForms';
import BoxForms from './BoxForms';
import BugForms from './BugForms';
import CategoryForms from './CategoryForms';
import CommentForms from './CommentForms';
import GroupForms from './GroupForms';
import IdeaForms from './IdeaForms';
import MessageForms from './MessageForms';
import ReportForms from './ReportForms';
Expand Down
1 change: 0 additions & 1 deletion src/components/FilterBar/FilterBar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { TEST_IDS } from '@/test-ids';
import { StatusTypes } from '@/types/Generics';
import { PossibleFields } from '@/types/Scopes';
import { SettingNamesType } from '@/types/SettingsTypes';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Idea/IdeaBubble/IdeaBubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ChatBubble from '@/components/ChatBubble';
import MarkdownReader from '@/components/MarkdownReader';
import MoreOptions from '@/components/MoreOptions';
import { IdeaType } from '@/types/Scopes';
import { checkPermissions, phases } from '@/utils';
import { checkPermissions } from '@/utils';
import { Stack, StackProps, Typography } from '@mui/material';
import { ReactNode, useState } from 'react';
import { useTranslation } from 'react-i18next';
Expand Down
1 change: 0 additions & 1 deletion src/components/Idea/VotingCard/VotingCard.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import AppIcon from '@/components/AppIcon';
import DelegateButton from '@/components/Buttons/DelegateButton';
import { getDelegations } from '@/services/users';
import { addVote, getVote } from '@/services/vote';
import { checkPermissions, Vote, votingOptions } from '@/utils';
Expand Down
2 changes: 1 addition & 1 deletion src/layout/PublicLayout/PublicLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ErrorBoundary } from '@/components';
import SkipNavigation from '@/components/SkipNavigation';
import { Stack, useTheme } from '@mui/material';
import { FunctionComponent, PropsWithChildren, useEffect } from 'react';
import { FunctionComponent, PropsWithChildren } from 'react';
import AulaLogo from './AulaLogo';
import PublicLayoutHeader from './PublicLayoutHeader';

Expand Down
2 changes: 1 addition & 1 deletion src/store/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { AppStore, AppContext, useAppStore, withAppStore } from './AppStore';
import { AppStore, useAppStore } from './AppStore';

export { AppStore, useAppStore, };
2 changes: 0 additions & 2 deletions src/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import AppThemeProvider from './AppThemeProvider';
import DARK_THEME from './dark';
import LIGHT_THEME from './light';

export {
AppThemeProvider, // Change to DARK_THEME if you want to use dark theme as default
Expand Down
1 change: 0 additions & 1 deletion src/views/About/AboutView.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useAppStore } from '@/store/AppStore';
import { useTranslation } from 'react-i18next';
import { usePageTitle } from '@/hooks/usePageTitle';
import { Stack } from '@mui/material';
import { useCallback, useEffect, useState } from 'react';
import { versionsRequest, VersionsResponse } from '@/services/requests-v2';

Expand Down
1 change: 0 additions & 1 deletion src/views/Messages/Message/MessageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { getMessage, setMessageStatus } from '@/services/messages';
import { MessageType } from '@/types/Scopes';
import { Card, CardActions, CardContent, CardHeader, Divider, Skeleton, Stack, Typography } from '@mui/material';
import { useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useNavigate, useParams } from 'react-router-dom';
import {t} from "i18next";

Expand Down
7 changes: 3 additions & 4 deletions src/views/Phases/PhasesView.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { AppIcon, EmptyState, ScopeHeader } from '@/components';
import { IdeaForms } from '@/components/DataForms';
import { EmptyState, ScopeHeader } from '@/components';
import { IdeaBubble } from '@/components/Idea';
import IdeaBubbleSkeleton from '@/components/Idea/IdeaBubble/IdeaBubbleSkeleton';
import { useSearchAndSort, createTextFilter, useFilter } from '@/hooks';
import { getWildIdeasByUser } from '@/services/dashboard';
import { deleteIdea, getUserIdeasByPhase } from '@/services/ideas';
import { useAppStore } from '@/store/AppStore';
import { IdeaType } from '@/types/Scopes';
import { checkPermissions, phases } from '@/utils';
import { Drawer, Fab, Stack } from '@mui/material';
import { phases } from '@/utils';
import { Stack } from '@mui/material';
import Grid from '@mui/material/Grid2';
import { useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
Expand Down
3 changes: 1 addition & 2 deletions src/views/Public/SetPassword/SetPasswordView.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { AppIconButton } from '@/components';
import AppIcon from '@/components/AppIcon';
import { getRuntimeConfig, loadRuntimeConfig, RuntimeConfig, RuntimeConfigNotFoundError } from '@/config';
import { getRuntimeConfig, loadRuntimeConfig, RuntimeConfig } from '@/config';
import { localStorageGet, localStorageSet } from "@/utils";
import { validateAndSaveInstanceCode } from '@/services/instance';
import { checkPasswordKey, setPassword } from '@/services/login';
Expand Down
1 change: 0 additions & 1 deletion src/views/Settings/Bugs/BugsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import FilterBar from '@/components/FilterBar';
import { StatusTypes } from '@/types/Generics';
import { MessageType, PossibleFields } from '@/types/Scopes';
import { useAppStore } from '@/store/AppStore';
import { Typography } from '@mui/material';
import { Stack } from '@mui/system';
import { useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
Expand Down
4 changes: 2 additions & 2 deletions src/views/Settings/Config/SystemSettings/SystemSettings.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { InstanceResponse, OnlineOptions } from '@/types/Generics';
import { InstanceStatusOptions } from '@/utils';
import { Button, MenuItem, Stack, TextField, Typography } from '@mui/material';
import { ChangeEvent, useEffect, useState } from 'react';
import { Button, Stack } from '@mui/material';
import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useForm } from 'react-hook-form';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { TEST_IDS } from '@/test-ids';
import { SelectOptionsType } from '@/types/SettingsTypes';
import { LanguageTypes } from '@/types/Translation';
import { Commands } from '@/utils/commands';
import { DATE_FORMATS, DEFAULT_FORMAT_DATE_ONLY, DEFAULT_FORMAT_DATE_TIME } from '@/utils/units';
import { DATE_FORMATS, DEFAULT_FORMAT_DATE_ONLY } from '@/utils/units';
import { Button, MenuItem, Stack, TextField, Typography } from '@mui/material';
import { DatePicker, LocalizationProvider } from '@mui/x-date-pickers';
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
Expand Down
1 change: 0 additions & 1 deletion src/views/Settings/Reports/ReportsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { getReports } from '@/services/messages';
import { StatusTypes } from '@/types/Generics';
import { MessageType, PossibleFields } from '@/types/Scopes';
import { useAppStore } from '@/store/AppStore';
import { Typography } from '@mui/material';
import { Stack } from '@mui/system';
import { useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
Expand Down
1 change: 0 additions & 1 deletion src/views/Settings/Requests/RequestsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { getRequests } from '@/services/messages';
import { StatusTypes } from '@/types/Generics';
import { MessageType, PossibleFields } from '@/types/Scopes';
import { useAppStore } from '@/store/AppStore';
import { Typography } from '@mui/material';
import { Stack } from '@mui/system';
import { useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
Expand Down