Skip to content

Commit

Permalink
enhancement(ui): improve icon design and fix code quality issues
Browse files Browse the repository at this point in the history
  • Loading branch information
phungmanhcuong committed Oct 23, 2024
1 parent f323b9b commit 0ae652d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ interface BaseRetrievePageProps {
children?: ReactNode;
}

const BaseRetrievePage = (
props: BaseRetrievePageProps,
): JSX.Element => (
const BaseRetrievePage = (props: BaseRetrievePageProps): JSX.Element => (
<Page className="h-full m-auto flex flex-col items-center justify-center text-center">
{props.illustration}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { defineMessages } from 'react-intl';
import { useParams } from 'react-router-dom';
import { Cancel, InsertDriveFileOutlined } from '@mui/icons-material';
import { Cancel, FolderOutlined } from '@mui/icons-material';

import Link from 'lib/components/core/Link';
import useTranslation from 'lib/hooks/useTranslation';
Expand Down Expand Up @@ -35,7 +35,7 @@ const ErrorRetrievingFolderPage = (): JSX.Element => {
description={t(translations.problemRetrievingFolderDescription)}
illustration={
<div className="relative">
<InsertDriveFileOutlined className="text-[6rem]" color="disabled" />
<FolderOutlined className="text-[6rem]" color="disabled" />

<Cancel
className="absolute bottom-0 -right-2 text-[4rem] bg-white rounded-full"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FC, ReactElement, useEffect, useState } from 'react';
import { defineMessages } from 'react-intl';
import {useLoaderData, useParams} from 'react-router-dom';
import { useLoaderData, useParams } from 'react-router-dom';

import EditButton from 'lib/components/core/buttons/EditButton';
import Page from 'lib/components/core/layouts/Page';
Expand Down

0 comments on commit 0ae652d

Please sign in to comment.