Skip to content

Commit

Permalink
reorganized action categories
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Nov 6, 2024
1 parent 37f932d commit b5d7a2b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import {
ActionKey,
} from '@dao-dao/types'

export const makeDaoAppearanceActionCategory: ActionCategoryMaker = ({
export const makeAppearanceActionCategory: ActionCategoryMaker = ({
t,
context,
}) =>
// Only DAOs.
context.type === ActionContextType.Dao
? {
key: ActionCategoryKey.DaoAppearance,
key: ActionCategoryKey.Appearance,
label: t('actionCategory.appearanceLabel'),
description: t('actionCategory.appearanceDescription'),
actionKeys: [ActionKey.UpdateInfo, ActionKey.ManageWidgets],
Expand Down
2 changes: 1 addition & 1 deletion packages/stateful/actions/core/categories/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export * from './appearance'
export * from './advanced'
export * from './authorizations'
export * from './chain-governance'
export * from './commonly-used'
export * from './dao-appearance'
export * from './dao-governance'
export * from './nfts'
export * from './rewards'
Expand Down
6 changes: 3 additions & 3 deletions packages/stateful/actions/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ export const getCoreActionCategoryMakers = (): ActionCategoryMaker[] => {
_coreActionCategoryMakers ??= [
categories.makeCommonlyUsedCategory,
categories.makeTreasuryActionCategory,
categories.makeValenceActionCategory,
categories.makeRewardsActionCategory,
categories.makeDaoGovernanceActionCategory,
categories.makeSubDaosActionCategory,
categories.makeRewardsActionCategory,
categories.makeDaoAppearanceActionCategory,
categories.makeAppearanceActionCategory,
categories.makeManageNftsActionCategory,
categories.makeSmartContractingActionCategory,
categories.makeAuthorizationsActionCategory,
categories.makeChainGovernanceActionCategory,
categories.makeValenceActionCategory,
categories.makeAdvancedActionCategory,
]
return _coreActionCategoryMakers
Expand Down
2 changes: 1 addition & 1 deletion packages/types/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export enum ActionCategoryKey {
CommonlyUsed = 'commonlyUsed',
Authorizations = 'authorizations',
ChainGovernance = 'chainGovernance',
DaoAppearance = 'daoAppearance',
Appearance = 'appearance',
DaoGovernance = 'daoGovernance',
SubDaos = 'subDaos',
SmartContracting = 'smartContracting',
Expand Down

0 comments on commit b5d7a2b

Please sign in to comment.