Skip to content

Commit

Permalink
Rename FileInfoTab to FileInfoTabPanel.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Sep 27, 2024
1 parent 81bc4ae commit 591a55b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import CustomTabPanel from "./CustomTabPanel";


/**
* Display the file name and original size of the selected file.
* Displays a panel containing the file name and original size of the selected file.
*
* @return
*/
const FileInfoTab = () => {
const FileInfoTabPanel = () => {
const {fileName, originalFileSizeInBytes} = useContext(StateContext);

return (
Expand All @@ -49,4 +49,4 @@ const FileInfoTab = () => {
);
};

export default FileInfoTab;
export default FileInfoTabPanel;
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import SettingsOutlinedIcon from "@mui/icons-material/SettingsOutlined";

import {TAB_NAME} from "../../../../typings/tab";
import SettingsModal from "../../../modals/SettingsModal";
import FileInfoTab from "./FileInfoTab";
import FileInfoTabPanel from "./FileInfoTabPanel";
import TooltipTab from "./TooltipTab";

import "./index.css";
Expand Down Expand Up @@ -80,7 +80,7 @@ const PanelTabs = forwardRef<HTMLDivElement, PanelTabsProps>((
tabName={TAB_NAME.SETTINGS}
onTabButtonClick={handleTabButtonClick}/>
</TabList>
<FileInfoTab/>
<FileInfoTabPanel/>
</Tabs>
<SettingsModal
isOpen={isSettingsModalOpen}
Expand Down

0 comments on commit 591a55b

Please sign in to comment.