Move fold items into folds/
This commit is contained in:
parent
318da1bd6f
commit
e39f6d4125
|
@ -2,15 +2,15 @@ import clsx from 'clsx'
|
|||
import { useRouter } from 'next/router'
|
||||
import { useState } from 'react'
|
||||
import { PlusCircleIcon } from '@heroicons/react/solid'
|
||||
import { parseWordsAsTags } from '../../common/util/parse'
|
||||
import { createFold } from '../lib/firebase/api-call'
|
||||
import { foldPath } from '../lib/firebase/folds'
|
||||
import { toCamelCase } from '../../common/util/format'
|
||||
import { ConfirmationButton } from './confirmation-button'
|
||||
import { Col } from './layout/col'
|
||||
import { Spacer } from './layout/spacer'
|
||||
import { TagsList } from './tags-list'
|
||||
import { Title } from './title'
|
||||
import { parseWordsAsTags } from '../../../common/util/parse'
|
||||
import { createFold } from '../../lib/firebase/api-call'
|
||||
import { foldPath } from '../../lib/firebase/folds'
|
||||
import { toCamelCase } from '../../../common/util/format'
|
||||
import { ConfirmationButton } from '../confirmation-button'
|
||||
import { Col } from '../layout/col'
|
||||
import { Spacer } from '../layout/spacer'
|
||||
import { TagsList } from '../tags-list'
|
||||
import { Title } from '../title'
|
||||
|
||||
export function CreateFoldButton() {
|
||||
const [name, setName] = useState('')
|
|
@ -3,12 +3,12 @@ import _ from 'lodash'
|
|||
import clsx from 'clsx'
|
||||
import { PencilIcon } from '@heroicons/react/outline'
|
||||
|
||||
import { Fold } from '../../common/fold'
|
||||
import { parseWordsAsTags } from '../../common/util/parse'
|
||||
import { deleteFold, updateFold } from '../lib/firebase/folds'
|
||||
import { toCamelCase } from '../../common/util/format'
|
||||
import { Spacer } from './layout/spacer'
|
||||
import { TagsList } from './tags-list'
|
||||
import { Fold } from '../../../common/fold'
|
||||
import { parseWordsAsTags } from '../../../common/util/parse'
|
||||
import { deleteFold, updateFold } from '../../lib/firebase/folds'
|
||||
import { toCamelCase } from '../../../common/util/format'
|
||||
import { Spacer } from '../layout/spacer'
|
||||
import { TagsList } from '../tags-list'
|
||||
import { useRouter } from 'next/router'
|
||||
|
||||
export function EditFoldButton(props: { fold: Fold; className?: string }) {
|
|
@ -2,10 +2,13 @@ import clsx from 'clsx'
|
|||
import { useState } from 'react'
|
||||
import { SearchIcon } from '@heroicons/react/outline'
|
||||
|
||||
import { User } from '../../common/user'
|
||||
import { followFoldFromSlug, unfollowFoldFromSlug } from '../lib/firebase/folds'
|
||||
import { Row } from './layout/row'
|
||||
import { Spacer } from './layout/spacer'
|
||||
import { User } from '../../../common/user'
|
||||
import {
|
||||
followFoldFromSlug,
|
||||
unfollowFoldFromSlug,
|
||||
} from '../../lib/firebase/folds'
|
||||
import { Row } from '../layout/row'
|
||||
import { Spacer } from '../layout/spacer'
|
||||
|
||||
function FollowFoldButton(props: {
|
||||
fold: { slug: string; name: string }
|
|
@ -1,5 +1,5 @@
|
|||
import clsx from 'clsx'
|
||||
import { Fold } from '../../common/fold'
|
||||
import { Fold } from '../../../common/fold'
|
||||
|
||||
export function FoldTag(props: { fold: Fold }) {
|
||||
const { fold } = props
|
|
@ -1,8 +1,8 @@
|
|||
import clsx from 'clsx'
|
||||
import { Fold } from '../../common/fold'
|
||||
import { useFollowedFolds } from '../hooks/use-fold'
|
||||
import { useUser } from '../hooks/use-user'
|
||||
import { followFold, unfollowFold } from '../lib/firebase/folds'
|
||||
import { Fold } from '../../../common/fold'
|
||||
import { useFollowedFolds } from '../../hooks/use-fold'
|
||||
import { useUser } from '../../hooks/use-user'
|
||||
import { followFold, unfollowFold } from '../../lib/firebase/folds'
|
||||
|
||||
export function FollowFoldButton(props: { fold: Fold; className?: string }) {
|
||||
const { fold, className } = props
|
|
@ -28,9 +28,9 @@ import clsx from 'clsx'
|
|||
import { scoreCreators, scoreTraders } from '../../../../common/scoring'
|
||||
import { Leaderboard } from '../../../components/leaderboard'
|
||||
import { formatMoney, toCamelCase } from '../../../../common/util/format'
|
||||
import { EditFoldButton } from '../../../components/edit-fold-button'
|
||||
import { EditFoldButton } from '../../../components/folds/edit-fold-button'
|
||||
import Custom404 from '../../404'
|
||||
import { FollowFoldButton } from '../../../components/follow-fold-button'
|
||||
import { FollowFoldButton } from '../../../components/folds/follow-fold-button'
|
||||
import FeedCreate from '../../../components/feed-create'
|
||||
import { SEO } from '../../../components/SEO'
|
||||
import { useTaggedContracts } from '../../../hooks/use-contracts'
|
||||
|
|
|
@ -2,8 +2,8 @@ import _ from 'lodash'
|
|||
import Link from 'next/link'
|
||||
import { useEffect, useState } from 'react'
|
||||
import { Fold } from '../../common/fold'
|
||||
import { CreateFoldButton } from '../components/create-fold-button'
|
||||
import { FollowFoldButton } from '../components/follow-fold-button'
|
||||
import { CreateFoldButton } from '../components/folds/create-fold-button'
|
||||
import { FollowFoldButton } from '../components/folds/follow-fold-button'
|
||||
import { Col } from '../components/layout/col'
|
||||
import { Row } from '../components/layout/row'
|
||||
import { Page } from '../components/page'
|
||||
|
|
|
@ -18,7 +18,7 @@ import { useUser } from '../hooks/use-user'
|
|||
import { Fold } from '../../common/fold'
|
||||
import { LoadingIndicator } from '../components/loading-indicator'
|
||||
import { Row } from '../components/layout/row'
|
||||
import { FastFoldFollowing } from '../components/fast-fold-following'
|
||||
import { FastFoldFollowing } from '../components/folds/fast-fold-following'
|
||||
import {
|
||||
getAllContractInfo,
|
||||
useExploreContracts,
|
||||
|
|
Loading…
Reference in New Issue
Block a user