Skip to content

Commit

Permalink
refactor: replace FractalModuleData with DecentModule in DaoHierarchy…
Browse files Browse the repository at this point in the history
…Node for consistency
  • Loading branch information
Da-Colon committed Nov 28, 2024
1 parent a5fa7f2 commit 21f4de6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/DaoHierarchy/DaoHierarchyNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { useAddressContractType } from '../../hooks/utils/useAddressContractType
import { useSafeAPI } from '../../providers/App/hooks/useSafeAPI';
import { useNetworkConfig } from '../../providers/NetworkConfig/NetworkConfigProvider';
import { useDaoInfoStore } from '../../store/daoInfo/useDaoInfoStore';
import { DaoHierarchyInfo, DaoHierarchyStrategyType, FractalModuleData } from '../../types';
import { DaoHierarchyInfo, DaoHierarchyStrategyType, DecentModule } from '../../types';
import { getAzoriusModuleFromModules } from '../../utils';
import { DAONodeInfoCard, NODE_HEIGHT_REM } from '../ui/cards/DAONodeInfoCard';
import { BarLoader } from '../ui/loaders/BarLoader';
Expand Down Expand Up @@ -59,7 +59,7 @@ export function DaoHierarchyNode({
});

const getVotingStrategies = useCallback(
async (azoriusModule: FractalModuleData) => {
async (azoriusModule: DecentModule) => {
if (!publicClient) {
throw new Error('Public Client is not set!');
}
Expand Down Expand Up @@ -92,7 +92,7 @@ export function DaoHierarchyNode({
);

const getGovernanceTypes = useCallback(
async (azoriusModule: FractalModuleData) => {
async (azoriusModule: DecentModule) => {
const votingStrategies = await getVotingStrategies(azoriusModule);

if (!votingStrategies) {
Expand Down

0 comments on commit 21f4de6

Please sign in to comment.