Convert components imports in web to be absolute
This commit is contained in:
parent
1bc1bb180b
commit
eb057b18e3
|
@ -1,6 +1,6 @@
|
|||
import { IS_PRIVATE_MANIFOLD } from 'common/envs/constants'
|
||||
import { Page } from '../components/page'
|
||||
import { Title } from '../components/title'
|
||||
import { Page } from 'web/components/page'
|
||||
import { Title } from 'web/components/title'
|
||||
|
||||
export default function Custom404() {
|
||||
if (IS_PRIVATE_MANIFOLD) {
|
||||
|
|
|
@ -2,13 +2,13 @@ import React, { useEffect, useState } from 'react'
|
|||
import { ArrowLeftIcon } from '@heroicons/react/outline'
|
||||
|
||||
import { useContractWithPreload } from 'web/hooks/use-contract'
|
||||
import { ContractOverview } from '../../components/contract/contract-overview'
|
||||
import { BetPanel } from '../../components/bet-panel'
|
||||
import { Col } from '../../components/layout/col'
|
||||
import { ContractOverview } from 'web/components/contract/contract-overview'
|
||||
import { BetPanel } from 'web/components/bet-panel'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { useUser } from 'web/hooks/use-user'
|
||||
import { ResolutionPanel } from '../../components/resolution-panel'
|
||||
import { Title } from '../../components/title'
|
||||
import { Spacer } from '../../components/layout/spacer'
|
||||
import { ResolutionPanel } from 'web/components/resolution-panel'
|
||||
import { Title } from 'web/components/title'
|
||||
import { Spacer } from 'web/components/layout/spacer'
|
||||
import { listUsers, User } from 'web/lib/firebase/users'
|
||||
import {
|
||||
Contract,
|
||||
|
@ -16,23 +16,23 @@ import {
|
|||
tradingAllowed,
|
||||
getBinaryProbPercent,
|
||||
} from 'web/lib/firebase/contracts'
|
||||
import { SEO } from '../../components/SEO'
|
||||
import { Page } from '../../components/page'
|
||||
import { SEO } from 'web/components/SEO'
|
||||
import { Page } from 'web/components/page'
|
||||
import { Bet, listAllBets } from 'web/lib/firebase/bets'
|
||||
import { Comment, listAllComments } from 'web/lib/firebase/comments'
|
||||
import Custom404 from '../404'
|
||||
import { AnswersPanel } from '../../components/answers/answers-panel'
|
||||
import { AnswersPanel } from 'web/components/answers/answers-panel'
|
||||
import { fromPropz, usePropz } from 'web/hooks/use-propz'
|
||||
import { Leaderboard } from '../../components/leaderboard'
|
||||
import { Leaderboard } from 'web/components/leaderboard'
|
||||
import _ from 'lodash'
|
||||
import { resolvedPayout } from 'common/calculate'
|
||||
import { formatMoney } from 'common/util/format'
|
||||
import { FeedBet, FeedComment } from '../../components/feed/feed-items'
|
||||
import { FeedBet, FeedComment } from 'web/components/feed/feed-items'
|
||||
import { useUserById } from 'web/hooks/use-users'
|
||||
import { ContractTabs } from '../../components/contract/contract-tabs'
|
||||
import { ContractTabs } from 'web/components/contract/contract-tabs'
|
||||
import { FirstArgument } from 'common/util/types'
|
||||
import { DPM, FreeResponse, FullContract } from 'common/contract'
|
||||
import { contractTextDetails } from '../../components/contract/contract-details'
|
||||
import { contractTextDetails } from 'web/components/contract/contract-details'
|
||||
import { useWindowSize } from 'web/hooks/use-window-size'
|
||||
import Confetti from 'react-confetti'
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import { useRouter } from 'next/router'
|
|||
import React, { useEffect, useState } from 'react'
|
||||
|
||||
import { getUserByUsername, User } from 'web/lib/firebase/users'
|
||||
import { UserPage } from '../../components/user-page'
|
||||
import { UserPage } from 'web/components/user-page'
|
||||
import { useUser } from 'web/hooks/use-user'
|
||||
import Custom404 from '../404'
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { cloneElement } from 'react'
|
||||
import { CREATOR_FEE } from 'common/fees'
|
||||
import { Page } from '../components/page'
|
||||
import { SEO } from '../components/SEO'
|
||||
import { Page } from 'web/components/page'
|
||||
import { SEO } from 'web/components/SEO'
|
||||
import styles from './about.module.css'
|
||||
|
||||
export default function About() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react'
|
||||
import { Page } from '../components/page'
|
||||
import { UserPage } from '../components/user-page'
|
||||
import { Page } from 'web/components/page'
|
||||
import { UserPage } from 'web/components/user-page'
|
||||
import { useUser } from 'web/hooks/use-user'
|
||||
import { firebaseLogin } from 'web/lib/firebase/users'
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { useState } from 'react'
|
||||
import { Col } from '../components/layout/col'
|
||||
import { SEO } from '../components/SEO'
|
||||
import { Title } from '../components/title'
|
||||
import { FundsSelector } from '../components/yes-no-selector'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { SEO } from 'web/components/SEO'
|
||||
import { Title } from 'web/components/title'
|
||||
import { FundsSelector } from 'web/components/yes-no-selector'
|
||||
import { useUser } from 'web/hooks/use-user'
|
||||
import { checkoutURL } from 'web/lib/service/stripe'
|
||||
import { Page } from '../components/page'
|
||||
import { Page } from 'web/components/page'
|
||||
|
||||
export default function AddFundsPage() {
|
||||
const user = useUser()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Page } from '../components/page'
|
||||
import { Page } from 'web/components/page'
|
||||
import { Grid, _ as r } from 'gridjs-react'
|
||||
import 'gridjs/dist/theme/mermaid.css'
|
||||
import { html } from 'gridjs'
|
||||
|
|
|
@ -4,12 +4,12 @@ import { IS_PRIVATE_MANIFOLD } from 'common/envs/constants'
|
|||
import {
|
||||
DailyCountChart,
|
||||
DailyPercentChart,
|
||||
} from '../components/analytics/charts'
|
||||
import { Col } from '../components/layout/col'
|
||||
import { Spacer } from '../components/layout/spacer'
|
||||
import { Tabs } from '../components/layout/tabs'
|
||||
import { Page } from '../components/page'
|
||||
import { Title } from '../components/title'
|
||||
} from 'web/components/analytics/charts'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { Spacer } from 'web/components/layout/spacer'
|
||||
import { Tabs } from 'web/components/layout/tabs'
|
||||
import { Page } from 'web/components/page'
|
||||
import { Title } from 'web/components/title'
|
||||
import { fromPropz, usePropz } from 'web/hooks/use-propz'
|
||||
import { getDailyBets } from 'web/lib/firebase/bets'
|
||||
import { getDailyComments } from 'web/lib/firebase/comments'
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import _ from 'lodash'
|
||||
import clsx from 'clsx'
|
||||
import { useEffect, useRef, useState } from 'react'
|
||||
import { Col } from '../../components/layout/col'
|
||||
import { Row } from '../../components/layout/row'
|
||||
import { Page } from '../../components/page'
|
||||
import { Title } from '../../components/title'
|
||||
import { BuyAmountInput } from '../../components/amount-input'
|
||||
import { Spacer } from '../../components/layout/spacer'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { Row } from 'web/components/layout/row'
|
||||
import { Page } from 'web/components/page'
|
||||
import { Title } from 'web/components/title'
|
||||
import { BuyAmountInput } from 'web/components/amount-input'
|
||||
import { Spacer } from 'web/components/layout/spacer'
|
||||
import { User } from 'common/user'
|
||||
import { useUser } from 'web/hooks/use-user'
|
||||
import { Linkify } from '../../components/linkify'
|
||||
import { Linkify } from 'web/components/linkify'
|
||||
import { transact } from 'web/lib/firebase/api-call'
|
||||
import { charities, Charity } from 'common/charity'
|
||||
import { useRouter } from 'next/router'
|
||||
|
@ -17,7 +17,7 @@ import Custom404 from '../404'
|
|||
import { useCharityTxns } from 'web/hooks/use-charity-txns'
|
||||
import { useWindowSize } from 'web/hooks/use-window-size'
|
||||
import Confetti from 'react-confetti'
|
||||
import { Donation } from '../../components/charity/feed-items'
|
||||
import { Donation } from 'web/components/charity/feed-items'
|
||||
import Image from 'next/image'
|
||||
|
||||
export const manaToUSD = (mana: number) =>
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import _ from 'lodash'
|
||||
import { useState, useMemo } from 'react'
|
||||
import { charities, Charity as CharityType } from 'common/charity'
|
||||
import { CharityCard } from '../../components/charity/charity-card'
|
||||
import { Col } from '../../components/layout/col'
|
||||
import { Spacer } from '../../components/layout/spacer'
|
||||
import { Page } from '../../components/page'
|
||||
import { SiteLink } from '../../components/site-link'
|
||||
import { Title } from '../../components/title'
|
||||
import { CharityCard } from 'web/components/charity/charity-card'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { Spacer } from 'web/components/layout/spacer'
|
||||
import { Page } from 'web/components/page'
|
||||
import { SiteLink } from 'web/components/site-link'
|
||||
import { Title } from 'web/components/title'
|
||||
import { getAllCharityTxns } from 'web/lib/firebase/txns'
|
||||
|
||||
export async function getStaticProps() {
|
||||
|
|
|
@ -4,18 +4,18 @@ import clsx from 'clsx'
|
|||
import dayjs from 'dayjs'
|
||||
import Textarea from 'react-expanding-textarea'
|
||||
|
||||
import { Spacer } from '../components/layout/spacer'
|
||||
import { Spacer } from 'web/components/layout/spacer'
|
||||
import { useUser } from 'web/hooks/use-user'
|
||||
import { Contract, contractPath } from 'web/lib/firebase/contracts'
|
||||
import { createContract } from 'web/lib/firebase/api-call'
|
||||
import { FIXED_ANTE, MINIMUM_ANTE } from 'common/antes'
|
||||
import { InfoTooltip } from '../components/info-tooltip'
|
||||
import { Page } from '../components/page'
|
||||
import { Title } from '../components/title'
|
||||
import { ProbabilitySelector } from '../components/probability-selector'
|
||||
import { InfoTooltip } from 'web/components/info-tooltip'
|
||||
import { Page } from 'web/components/page'
|
||||
import { Title } from 'web/components/title'
|
||||
import { ProbabilitySelector } from 'web/components/probability-selector'
|
||||
import { parseWordsAsTags } from 'common/util/parse'
|
||||
import { TagsList } from '../components/tags-list'
|
||||
import { Row } from '../components/layout/row'
|
||||
import { TagsList } from 'web/components/tags-list'
|
||||
import { Row } from 'web/components/layout/row'
|
||||
import { MAX_DESCRIPTION_LENGTH, outcomeType } from 'common/contract'
|
||||
import { formatMoney } from 'common/util/format'
|
||||
import { useHasCreatedContractToday } from 'web/hooks/use-has-created-contract-today'
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
import { Bet } from 'common/bet'
|
||||
import { Contract, DPM, FreeResponse, FullContract } from 'common/contract'
|
||||
import { DOMAIN } from 'common/envs/constants'
|
||||
import { AnswersGraph } from '../../../components/answers/answers-graph'
|
||||
import { AnswersGraph } from 'web/components/answers/answers-graph'
|
||||
import {
|
||||
BinaryResolutionOrChance,
|
||||
FreeResponseResolutionOrChance,
|
||||
} from '../../../components/contract/contract-card'
|
||||
import { ContractDetails } from '../../../components/contract/contract-details'
|
||||
import { ContractProbGraph } from '../../../components/contract/contract-prob-graph'
|
||||
import { Col } from '../../../components/layout/col'
|
||||
import { Row } from '../../../components/layout/row'
|
||||
import { Spacer } from '../../../components/layout/spacer'
|
||||
import { Linkify } from '../../../components/linkify'
|
||||
import { SiteLink } from '../../../components/site-link'
|
||||
} from 'web/components/contract/contract-card'
|
||||
import { ContractDetails } from 'web/components/contract/contract-details'
|
||||
import { ContractProbGraph } from 'web/components/contract/contract-prob-graph'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { Row } from 'web/components/layout/row'
|
||||
import { Spacer } from 'web/components/layout/spacer'
|
||||
import { Linkify } from 'web/components/linkify'
|
||||
import { SiteLink } from 'web/components/site-link'
|
||||
import { useContractWithPreload } from 'web/hooks/use-contract'
|
||||
import { useMeasureSize } from 'web/hooks/use-measure-size'
|
||||
import { fromPropz, usePropz } from 'web/hooks/use-propz'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { FirstArgument } from 'common/util/types'
|
||||
import { Col } from '../../components/layout/col'
|
||||
import { Spacer } from '../../components/layout/spacer'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { Spacer } from 'web/components/layout/spacer'
|
||||
import { fromPropz } from 'web/hooks/use-propz'
|
||||
import Analytics, {
|
||||
CustomAnalytics,
|
||||
|
|
|
@ -2,8 +2,8 @@ import _ from 'lodash'
|
|||
|
||||
import { Fold } from 'common/fold'
|
||||
import { Comment } from 'common/comment'
|
||||
import { Page } from '../../../components/page'
|
||||
import { Title } from '../../../components/title'
|
||||
import { Page } from 'web/components/page'
|
||||
import { Title } from 'web/components/title'
|
||||
import { Bet, listAllBets } from 'web/lib/firebase/bets'
|
||||
import { Contract } from 'web/lib/firebase/contracts'
|
||||
import {
|
||||
|
@ -11,30 +11,30 @@ import {
|
|||
getFoldBySlug,
|
||||
getFoldContracts,
|
||||
} from 'web/lib/firebase/folds'
|
||||
import { ActivityFeed } from '../../../components/feed/activity-feed'
|
||||
import { TagsList } from '../../../components/tags-list'
|
||||
import { Row } from '../../../components/layout/row'
|
||||
import { UserLink } from '../../../components/user-page'
|
||||
import { ActivityFeed } from 'web/components/feed/activity-feed'
|
||||
import { TagsList } from 'web/components/tags-list'
|
||||
import { Row } from 'web/components/layout/row'
|
||||
import { UserLink } from 'web/components/user-page'
|
||||
import { getUser, User } from 'web/lib/firebase/users'
|
||||
import { Spacer } from '../../../components/layout/spacer'
|
||||
import { Col } from '../../../components/layout/col'
|
||||
import { Spacer } from 'web/components/layout/spacer'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { useUser } from 'web/hooks/use-user'
|
||||
import { useFold } from 'web/hooks/use-fold'
|
||||
import { SearchableGrid } from '../../../components/contract/contracts-list'
|
||||
import { SearchableGrid } from 'web/components/contract/contracts-list'
|
||||
import { useRouter } from 'next/router'
|
||||
import { scoreCreators, scoreTraders } from 'common/scoring'
|
||||
import { Leaderboard } from '../../../components/leaderboard'
|
||||
import { Leaderboard } from 'web/components/leaderboard'
|
||||
import { formatMoney } from 'common/util/format'
|
||||
import { EditFoldButton } from '../../../components/folds/edit-fold-button'
|
||||
import { EditFoldButton } from 'web/components/folds/edit-fold-button'
|
||||
import Custom404 from '../../404'
|
||||
import { FollowFoldButton } from '../../../components/folds/follow-fold-button'
|
||||
import { SEO } from '../../../components/SEO'
|
||||
import { FollowFoldButton } from 'web/components/folds/follow-fold-button'
|
||||
import { SEO } from 'web/components/SEO'
|
||||
import { useTaggedContracts } from 'web/hooks/use-contracts'
|
||||
import { Linkify } from '../../../components/linkify'
|
||||
import { Linkify } from 'web/components/linkify'
|
||||
import { fromPropz, usePropz } from 'web/hooks/use-propz'
|
||||
import { filterDefined } from 'common/util/array'
|
||||
import { findActiveContracts } from '../../../components/feed/find-active-contracts'
|
||||
import { Tabs } from '../../../components/layout/tabs'
|
||||
import { findActiveContracts } from 'web/components/feed/find-active-contracts'
|
||||
import { Tabs } from 'web/components/layout/tabs'
|
||||
|
||||
export const getStaticProps = fromPropz(getStaticPropz)
|
||||
export async function getStaticPropz(props: { params: { slugs: string[] } }) {
|
||||
|
|
|
@ -2,14 +2,14 @@ import _ from 'lodash'
|
|||
import Link from 'next/link'
|
||||
import { useEffect, useState } from 'react'
|
||||
import { Fold } from 'common/fold'
|
||||
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'
|
||||
import { TagsList } from '../components/tags-list'
|
||||
import { Title } from '../components/title'
|
||||
import { UserLink } from '../components/user-page'
|
||||
import { CreateFoldButton } from 'web/components/folds/create-fold-button'
|
||||
import { FollowFoldButton } from 'web/components/folds/follow-fold-button'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { Row } from 'web/components/layout/row'
|
||||
import { Page } from 'web/components/page'
|
||||
import { TagsList } from 'web/components/tags-list'
|
||||
import { Title } from 'web/components/title'
|
||||
import { UserLink } from 'web/components/user-page'
|
||||
import { useFolds, useFollowedFoldIds } from 'web/hooks/use-fold'
|
||||
import { useUser } from 'web/hooks/use-user'
|
||||
import { foldPath, listAllFolds } from 'web/lib/firebase/folds'
|
||||
|
|
|
@ -2,13 +2,13 @@ import React, { useEffect } from 'react'
|
|||
import Router, { useRouter } from 'next/router'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { Page } from '../components/page'
|
||||
import { ActivityFeed } from '../components/feed/activity-feed'
|
||||
import FeedCreate from '../components/feed-create'
|
||||
import { Spacer } from '../components/layout/spacer'
|
||||
import { Col } from '../components/layout/col'
|
||||
import { Page } from 'web/components/page'
|
||||
import { ActivityFeed } from 'web/components/feed/activity-feed'
|
||||
import FeedCreate from 'web/components/feed-create'
|
||||
import { Spacer } from 'web/components/layout/spacer'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { useUser } from 'web/hooks/use-user'
|
||||
import { LoadingIndicator } from '../components/loading-indicator'
|
||||
import { LoadingIndicator } from 'web/components/loading-indicator'
|
||||
import { useAlgoFeed } from 'web/hooks/use-algo-feed'
|
||||
import { ContractPageContent } from './[username]/[contractSlug]'
|
||||
|
||||
|
|
|
@ -2,11 +2,11 @@ import React from 'react'
|
|||
import Router from 'next/router'
|
||||
|
||||
import { Contract, getContractsBySlugs } from 'web/lib/firebase/contracts'
|
||||
import { Page } from '../components/page'
|
||||
import { FeedPromo } from '../components/feed-create'
|
||||
import { Col } from '../components/layout/col'
|
||||
import { Page } from 'web/components/page'
|
||||
import { FeedPromo } from 'web/components/feed-create'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { useUser } from 'web/hooks/use-user'
|
||||
import { ManifoldLogo } from '../components/nav/manifold-logo'
|
||||
import { ManifoldLogo } from 'web/components/nav/manifold-logo'
|
||||
|
||||
export async function getStaticProps() {
|
||||
const hotContracts = await getContractsBySlugs([
|
||||
|
|
|
@ -8,8 +8,8 @@ import {
|
|||
} from '@heroicons/react/outline'
|
||||
|
||||
import { firebaseLogin } from 'web/lib/firebase/users'
|
||||
import { ContractsGrid } from '../components/contract/contracts-list'
|
||||
import { Col } from '../components/layout/col'
|
||||
import { ContractsGrid } from 'web/components/contract/contracts-list'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import Link from 'next/link'
|
||||
import { Contract } from 'web/lib/firebase/contracts'
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import _ from 'lodash'
|
||||
|
||||
import { Col } from '../components/layout/col'
|
||||
import { Leaderboard } from '../components/leaderboard'
|
||||
import { Page } from '../components/page'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { Leaderboard } from 'web/components/leaderboard'
|
||||
import { Page } from 'web/components/page'
|
||||
import { getTopCreators, getTopTraders, User } from 'web/lib/firebase/users'
|
||||
import { formatMoney } from 'common/util/format'
|
||||
import { fromPropz, usePropz } from 'web/hooks/use-propz'
|
||||
|
|
|
@ -7,14 +7,14 @@ import Textarea from 'react-expanding-textarea'
|
|||
import { getProbability } from 'common/calculate'
|
||||
import { Binary, CPMM, DPM, FullContract } from 'common/contract'
|
||||
import { parseWordsAsTags } from 'common/util/parse'
|
||||
import { BuyAmountInput } from '../components/amount-input'
|
||||
import { InfoTooltip } from '../components/info-tooltip'
|
||||
import { Col } from '../components/layout/col'
|
||||
import { Row } from '../components/layout/row'
|
||||
import { Spacer } from '../components/layout/spacer'
|
||||
import { Linkify } from '../components/linkify'
|
||||
import { Page } from '../components/page'
|
||||
import { Title } from '../components/title'
|
||||
import { BuyAmountInput } from 'web/components/amount-input'
|
||||
import { InfoTooltip } from 'web/components/info-tooltip'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { Row } from 'web/components/layout/row'
|
||||
import { Spacer } from 'web/components/layout/spacer'
|
||||
import { Linkify } from 'web/components/linkify'
|
||||
import { Page } from 'web/components/page'
|
||||
import { Title } from 'web/components/title'
|
||||
import { useUser } from 'web/hooks/use-user'
|
||||
import { createContract } from 'web/lib/firebase/api-call'
|
||||
import { contractPath } from 'web/lib/firebase/contracts'
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import {
|
||||
ContractsGrid,
|
||||
SearchableGrid,
|
||||
} from '../components/contract/contracts-list'
|
||||
import { Page } from '../components/page'
|
||||
import { SEO } from '../components/SEO'
|
||||
import { Title } from '../components/title'
|
||||
} from 'web/components/contract/contracts-list'
|
||||
import { Page } from 'web/components/page'
|
||||
import { SEO } from 'web/components/SEO'
|
||||
import { Title } from 'web/components/title'
|
||||
import { useContracts } from 'web/hooks/use-contracts'
|
||||
import { Contract } from 'web/lib/firebase/contracts'
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import Router from 'next/router'
|
||||
import { useEffect } from 'react'
|
||||
|
||||
import { BetsList } from '../components/bets-list'
|
||||
import { Page } from '../components/page'
|
||||
import { SEO } from '../components/SEO'
|
||||
import { Title } from '../components/title'
|
||||
import { BetsList } from 'web/components/bets-list'
|
||||
import { Page } from 'web/components/page'
|
||||
import { SEO } from 'web/components/SEO'
|
||||
import { Title } from 'web/components/title'
|
||||
import { useUser } from 'web/hooks/use-user'
|
||||
|
||||
export default function PortfolioPage() {
|
||||
|
|
|
@ -2,21 +2,21 @@ import { useEffect, useState } from 'react'
|
|||
import { PencilIcon } from '@heroicons/react/outline'
|
||||
import Router from 'next/router'
|
||||
|
||||
import { AddFundsButton } from '../components/add-funds-button'
|
||||
import { Page } from '../components/page'
|
||||
import { SEO } from '../components/SEO'
|
||||
import { Title } from '../components/title'
|
||||
import { AddFundsButton } from 'web/components/add-funds-button'
|
||||
import { Page } from 'web/components/page'
|
||||
import { SEO } from 'web/components/SEO'
|
||||
import { Title } from 'web/components/title'
|
||||
import { usePrivateUser, useUser } from 'web/hooks/use-user'
|
||||
import { formatMoney } from 'common/util/format'
|
||||
import { cleanDisplayName, cleanUsername } from 'common/util/clean-username'
|
||||
import { changeUserInfo } from 'web/lib/firebase/api-call'
|
||||
import { uploadImage } from 'web/lib/firebase/storage'
|
||||
import { Col } from '../components/layout/col'
|
||||
import { Row } from '../components/layout/row'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
import { Row } from 'web/components/layout/row'
|
||||
import { User } from 'common/user'
|
||||
import { updateUser } from 'web/lib/firebase/users'
|
||||
import { defaultBannerUrl } from '../components/user-page'
|
||||
import { SiteLink } from '../components/site-link'
|
||||
import { defaultBannerUrl } from 'web/components/user-page'
|
||||
import { SiteLink } from 'web/components/site-link'
|
||||
import Textarea from 'react-expanding-textarea'
|
||||
|
||||
function EditUserField(props: {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { DatumValue } from '@nivo/core'
|
|||
import { ResponsiveLine } from '@nivo/line'
|
||||
|
||||
import { Entry, makeEntries } from 'web/lib/simulator/entries'
|
||||
import { Col } from '../components/layout/col'
|
||||
import { Col } from 'web/components/layout/col'
|
||||
|
||||
function TableBody(props: { entries: Entry[] }) {
|
||||
return (
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { useEffect, useState } from 'react'
|
||||
import { useRouter } from 'next/router'
|
||||
import { SearchableGrid } from '../../components/contract/contracts-list'
|
||||
import { Page } from '../../components/page'
|
||||
import { Title } from '../../components/title'
|
||||
import { SearchableGrid } from 'web/components/contract/contracts-list'
|
||||
import { Page } from 'web/components/page'
|
||||
import { Title } from 'web/components/title'
|
||||
import {
|
||||
Contract,
|
||||
listTaggedContractsCaseInsensitive,
|
||||
|
|
Loading…
Reference in New Issue
Block a user