Skip to content

Commit

Permalink
[joy-ui][templates] Remove outdated code (#40095)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanivan authored Dec 6, 2023
1 parent 147e78e commit e29b75c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 114 deletions.
15 changes: 0 additions & 15 deletions docs/data/joy/getting-started/templates/order-dashboard/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,12 @@ import HomeRoundedIcon from '@mui/icons-material/HomeRounded';
import ChevronRightRoundedIcon from '@mui/icons-material/ChevronRightRounded';
import DownloadRoundedIcon from '@mui/icons-material/DownloadRounded';

import useScript from './useScript';
import Sidebar from './components/Sidebar';
import OrderTable from './components/OrderTable';
import OrderList from './components/OrderList';
import Header from './components/Header';

const useEnhancedEffect =
typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;

export default function JoyOrderDashboardTemplate() {
const status = useScript('https://unpkg.com/feather-icons');

useEnhancedEffect(() => {
// Feather icon setup: https://github.com/feathericons/feather#4-replace
// @ts-ignore
if (typeof feather !== 'undefined') {
// @ts-ignore
feather.replace();
}
}, [status]);

return (
<CssVarsProvider disableTransitionOnChange>
<CssBaseline />
Expand Down

This file was deleted.

0 comments on commit e29b75c

Please sign in to comment.