Skip to content

Commit

Permalink
chore: chamge import
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai Nicolae committed May 30, 2024
1 parent 47d5c01 commit c106271
Show file tree
Hide file tree
Showing 35 changed files with 43 additions and 42 deletions.
2 changes: 1 addition & 1 deletion tabs/src/components/CustomColumnResizeIcon.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useCallback, useEffect, useState } from 'react';
import React, { useCallback, useEffect, useState } from 'react';
import { GridSeparatorIcon } from '@mui/x-data-grid';

export default function CustomColumnResizeIcon({ onWidthChanged, id }) {
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/CustomDrawer.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React } from 'react';
import React from 'react';
import { styled } from '@mui/material/styles';
import MuiDrawer from '@mui/material/Drawer';

Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/EventDialogTitle.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useState, useEffect } from 'react';
import React, { useState, useEffect } from 'react';
import { Box, Typography } from '@mui/material';
import { format } from 'date-fns';
import { useConfiguration } from '../data/hooks/useConfiguration';
Expand Down
17 changes: 9 additions & 8 deletions tabs/src/components/HtmlBox.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { React } from 'react';
import React from 'react';
import { Box } from '@mui/material';
import DOMPurify from 'dompurify';

DOMPurify.addHook('afterSanitizeAttributes', function (node) {
// set all elements owning target to target=_blank
if ('target' in node) {
node.setAttribute('target', '_blank');
node.setAttribute('rel', 'noopener');
}
});
DOMPurify.isSupported &&
DOMPurify.addHook('afterSanitizeAttributes', function (node) {
// set all elements owning target to target=_blank
if ('target' in node) {
node.setAttribute('target', '_blank');
node.setAttribute('rel', 'noopener');
}
});

export function HtmlBox({ html }) {
return (
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/ResizableGrid.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useCallback, useEffect, useState } from 'react';
import React, { useCallback, useEffect, useState } from 'react';
import { DataGrid } from '@mui/x-data-grid';
import CustomColumnResizeIcon from './CustomColumnResizeIcon';
import Constants from '../data/constants.json';
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/Tab.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useState, useEffect, useCallback } from 'react';
import React, { useState, useEffect, useCallback } from 'react';
import { useMediaQuery } from 'react-responsive';

import { getMe } from '../data/provider';
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/UnderConstruction.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ConstructionIcon from '@mui/icons-material/Construction';
import { React } from 'react';
import React from 'react';
import { Box, Typography } from '@mui/material';

export function UnderConstruction() {
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/activity/Activity.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useState, useEffect, useCallback } from 'react';
import React, { useState, useEffect, useCallback } from 'react';
import {
Backdrop,
CircularProgress,
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/activity/ConsultationList.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useCallback, useState } from 'react';
import React, { useCallback, useState } from 'react';
import { format } from 'date-fns';
import { Button, Box, Typography, Link, Dialog, IconButton, Tooltip } from '@mui/material';
import TaskAltIcon from '@mui/icons-material/TaskAlt';
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/activity/EventList.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useState } from 'react';
import React, { useState } from 'react';

import {
Box,
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/activity/GroupsTags.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React } from 'react';
import React from 'react';
import { Chip, Tooltip } from '@mui/material';

export function GroupsTags({ groups, handleClick, isDialog }) {
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/activity/ObligationList.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React } from 'react';
import React from 'react';

import { Box, Typography, Link } from '@mui/material';
import TaskAltIcon from '@mui/icons-material/TaskAlt';
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/activity/PublicationList.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React } from 'react';
import React from 'react';

import { Box, Typography, Chip, Tooltip, Link } from '@mui/material';

Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/activity/Reporting.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Box } from '@mui/material';
import { React } from 'react';
import React from 'react';
import { UnderConstruction } from '../UnderConstruction';

export function Reporting() {
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/event_rating/EventRating.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useState } from 'react';
import React, { useState } from 'react';
import { Box, Button, CircularProgress, Backdrop, Rating, Typography } from '@mui/material';

import CheckIcon from '@mui/icons-material/Check';
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/event_rating/EventRatingDialog.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React } from 'react';
import React from 'react';
import { Dialog, DialogTitle, IconButton } from '@mui/material';

import CloseIcon from '@mui/icons-material/Close';
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/event_registration/Approval.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useState } from 'react';
import React, { useState } from 'react';
import { Box, TextField, Checkbox, Autocomplete, FormControlLabel } from '@mui/material';
import AssignmentTurnedInIcon from '@mui/icons-material/AssignmentTurnedIn';
import AssignmentLateIcon from '@mui/icons-material/AssignmentLate';
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/event_registration/ApprovalDialog.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React } from 'react';
import React from 'react';
import { Dialog, DialogTitle, IconButton } from '@mui/material';

import CloseIcon from '@mui/icons-material/Close';
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/event_registration/ApprovalList.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useRef, useState } from 'react';
import React, { useRef, useState } from 'react';
import { Box, Button, CircularProgress, Backdrop } from '@mui/material';
import CheckIcon from '@mui/icons-material/Check';
import SaveIcon from '@mui/icons-material/Save';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useState } from 'react';
import React, { useState } from 'react';
import {
Box,
Checkbox,
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/my_country/AtAGlance.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useState, useEffect } from 'react';
import React, { useState, useEffect } from 'react';
import { Box, Typography, Backdrop, CircularProgress } from '@mui/material';
import { IndicatorCard } from './IndicatorCard';
import { CountryProgress } from './CountryProgress';
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/my_country/CountryMembers.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useEffect, useState } from 'react';
import React, { useEffect, useState } from 'react';
import './my_country.scss';
import { Box, Typography, Backdrop, CircularProgress } from '@mui/material';
import { getADUserInfos } from '../../data/sharepointProvider';
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/my_country/CountryProgress.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useState } from 'react';
import React, { useState } from 'react';
import { Box, Typography, Tab, Tabs } from '@mui/material';
import PropTypes from 'prop-types';
import { YearlyProgress } from './YearlyProgress';
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/my_country/DataReporters.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React } from 'react';
import React from 'react';
import { Box } from '@mui/material';
import { UnderConstruction } from '../UnderConstruction';

Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/my_country/FullCircularProgress.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React } from 'react';
import React from 'react';
import { Box, CircularProgress } from '@mui/material';

export function FullCircularProgress({ totalCount, responseCount }) {
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/my_country/GroupView.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useEffect, useState } from 'react';
import React, { useEffect, useState } from 'react';
import './my_country.scss';
import ResizableGrid from '../ResizableGrid';
import { Box, Divider, Typography, Backdrop, CircularProgress } from '@mui/material';
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/my_country/GroupsBoard.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useState } from 'react';
import React, { useState } from 'react';
import { Box, ListItem, ListItemButton, ListItemText, IconButton } from '@mui/material';

import MenuIcon from '@mui/icons-material/Menu';
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/my_country/IndicatorCard.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useState } from 'react';
import React, { useState } from 'react';
import { Typography, Card, CardContent, Dialog, Link, Button, IconButton } from '@mui/material';
import HelpOutlineIcon from '@mui/icons-material/HelpOutline';

Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/my_country/ManagementBoard.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React } from 'react';
import React from 'react';
import { Box, Chip, Tooltip } from '@mui/material';
import ResizableGrid from '../ResizableGrid';

Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/my_country/MyCountry.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useState, useEffect, useCallback } from 'react';
import React, { useState, useEffect, useCallback } from 'react';
import {
Backdrop,
Box,
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/my_country/ProgressGauge.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useState } from 'react';
import React, { useState } from 'react';
import {
Box,
Button,
Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/my_country/ScientificCommittee.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React } from 'react';
import React from 'react';
import { Box } from '@mui/material';
import { UnderConstruction } from '../UnderConstruction';

Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/my_country/UserCard.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React } from 'react';
import React from 'react';
import { Avatar, Box, CardContent, Card, Typography, Chip } from '@mui/material';
import EmailOutlinedIcon from '@mui/icons-material/EmailOutlined';

Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/my_country/YearlyProgress.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React } from 'react';
import React from 'react';
import { Box, Typography } from '@mui/material';
import { ProgressGauge } from './ProgressGauge';

Expand Down
2 changes: 1 addition & 1 deletion tabs/src/components/self_service/UserEdit.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { React, useState, useEffect } from 'react';
import React, { useState, useEffect } from 'react';
import { saveData } from '../../data/selfServiceProvider';
import { getGenderList } from '../../data/selfServiceSharepointProvider';
import { validateMandatoryField, validateName, validatePhone } from '../../data/validator';
Expand Down

0 comments on commit c106271

Please sign in to comment.