Skip to content

Commit

Permalink
Get info from prop
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfilius committed Aug 29, 2024
1 parent e5e0d60 commit 3dafed1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/modules/home/components/Modules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {pascalCase} from 'pascal-case'
import {Box} from '@/components/ui/containers/Box'
import {EmptyMessage} from '@/components/ui/feedback/EmptyMessage'
import {Column} from '@/components/ui/layout/Column'
import {useModules} from '@/hooks/useModules'
import {ModuleButton} from '@/modules/home/components/ModuleButton'
import {ModuleStatus, type Module} from '@/modules/types'

Expand All @@ -11,9 +10,7 @@ type Props = {
}

export const Modules = ({modules}: Props) => {
const {enabledModules} = useModules()

const availableModules = enabledModules?.filter(m => !m.hiddenInMenu)
const availableModules = modules?.filter(m => !m.hiddenInMenu)

if (!modules.length) {
return (
Expand Down

0 comments on commit 3dafed1

Please sign in to comment.