Skip to content

Commit

Permalink
Moved command package into common package.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Oct 21, 2022
1 parent 4177c11 commit e0473d1
Show file tree
Hide file tree
Showing 19 changed files with 5 additions and 85 deletions.
2 changes: 1 addition & 1 deletion apps/dapp/components/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import toast from 'react-hot-toast'
import { useTranslation } from 'react-i18next'
import { useRecoilState, useRecoilValue, useSetRecoilState } from 'recoil'

import { CommandModal, makeGenericContext } from '@dao-dao/command'
import {
PfpkNftSelectionModal,
SidebarWallet,
daoCreatedCardPropsAtom,
pinnedDaoDropdownInfosSelector,
} from '@dao-dao/common'
import { CommandModal, makeGenericContext } from '@dao-dao/common/command'
import {
mountedInBrowserAtom,
navigationCompactAtom,
Expand Down
1 change: 0 additions & 1 deletion apps/dapp/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const withTM = require('next-transpile-modules')([
'@dao-dao/voting-module-adapter',
'@dao-dao/proposal-module-adapter',
'@dao-dao/types',
'@dao-dao/command',
])

const { withSentryConfig } = require('@sentry/nextjs')
Expand Down
1 change: 0 additions & 1 deletion apps/dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"@cosmjs/encoding": "0.28.10",
"@cosmjs/proto-signing": "0.28.10",
"@cosmjs/stargate": "0.28.10",
"@dao-dao/command": "2.0.1",
"@dao-dao/common": "2.0.1",
"@dao-dao/i18n": "2.0.1",
"@dao-dao/proposal-module-adapter": "2.0.1",
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"storybook": "yarn workspace @dao-dao/storybook",
"proposal-module-adapter": "yarn workspace @dao-dao/proposal-module-adapter",
"voting-module-adapter": "yarn workspace @dao-dao/voting-module-adapter",
"command": "yarn workspace @dao-dao/command",
"types": "yarn workspace @dao-dao/types"
},
"devDependencies": {
Expand Down
10 changes: 0 additions & 10 deletions packages/command/.eslintrc.js

This file was deleted.

32 changes: 0 additions & 32 deletions packages/command/LICENSE

This file was deleted.

31 changes: 0 additions & 31 deletions packages/command/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions packages/command/tsconfig.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @dao-dao/command
# @dao-dao/common/command

This package provides a convenient interface for customizing the command modal
(command-K/control-K), the component that lets you quickly navigate the site and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import { useCallback, useEffect, useRef, useState } from 'react'
import { useTranslation } from 'react-i18next'

import { SuspenseLoader } from '@dao-dao/common'
import { CommandModal as StatelessCommandModal } from '@dao-dao/stateless'
import { CommandModalContext, CommandModalProps } from '@dao-dao/types/command'

import { SuspenseLoader } from '../../components/SuspenseLoader'
import { CommandModalContextView } from './CommandModalContextView'

export const CommandModal = ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Fuse from 'fuse.js'
import { useMemo } from 'react'

import { SuspenseLoader } from '@dao-dao/common'
import {
CommandModalContextViewLoader,
CommandModalContextView as StatelessCommandModalContextView,
Expand All @@ -11,6 +10,8 @@ import {
CommandModalContextSection,
} from '@dao-dao/types/command'

import { SuspenseLoader } from '../../components/SuspenseLoader'

export interface CommandModalContextViewProps {
filter: string
contexts: CommandModalContext[]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e0473d1

Please sign in to comment.