Skip to content

Commit

Permalink
Remove useAuth and useGetAndSetUsername from LibraryContent
Browse files Browse the repository at this point in the history
  • Loading branch information
VanessaScherma committed Dec 6, 2024
1 parent b880164 commit 11f9bf0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions client/src/preview/route/library/LibraryPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import * as React from 'react';
import Layout from 'page/Layout';
import TabComponent from 'components/tab/TabComponent';
import { Paper, Typography } from '@mui/material';
import { useAuth } from 'react-oidc-context';
import ShoppingCart from 'preview/components/cart/ShoppingCart';
import { useGetAndSetUsername } from 'util/auth/Authentication';
import AssetLibrary from 'preview/components/asset/AssetLibrary';
import { assetType, scope } from './LibraryTabDataPreview';

Expand Down Expand Up @@ -51,10 +49,6 @@ export function createCombinedTabs() {
}

function LibraryContent() {
const auth = useAuth();
const getAndSetUsername = useGetAndSetUsername();
getAndSetUsername(auth);

const tabsData = createTabs();
const combinedData = createCombinedTabs();

Expand Down

0 comments on commit 11f9bf0

Please sign in to comment.