Skip to content

Commit

Permalink
refactor: nuke project updates (#4354)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeolianeth authored Jun 10, 2024
1 parent 438e411 commit b7d3fbf
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 648 deletions.
2 changes: 1 addition & 1 deletion codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ overwrite: true
schema: ${SUBGRAPH_URL}
documents: 'src/graphql/**/*.graphql'
generates:
src/generated/graphql.tsx:
src/generated/graphql.ts:
plugins:
- 'typescript'
- 'typescript-operations'
Expand Down
2 changes: 1 addition & 1 deletion scripts/graphql-codegen-override-pv.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require('fs')

const path = __dirname + '/../src/generated/graphql.tsx'
const path = __dirname + '/../src/generated/graphql.ts'

try {
// Load generated file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { PayRedeemCard } from './components/PayRedeemCard'
import { ProjectHeader } from './components/ProjectHeader/ProjectHeader'
import { ProjectHeaderCountdown } from './components/ProjectHeaderCountdown'
import { ProjectTabs } from './components/ProjectTabs/ProjectTabs'
import { ProjectUpdatesProvider } from './components/ProjectUpdatesProvider/ProjectUpdatesProvider'
import { ReduxProjectCartProvider } from './components/ReduxProjectCartProvider'
import { SuccessPayView } from './components/SuccessPayView/SuccessPayView'
import { useProjectPageQueries } from './hooks/useProjectPageQueries'
Expand Down Expand Up @@ -72,9 +71,7 @@ const Wrapper: React.FC<{ children: React.ReactNode }> = ({ children }) => {
<Provider store={store}>
<TransactionProvider>
<FundingCycleCountdownProvider>
<ReduxProjectCartProvider>
<ProjectUpdatesProvider>{children}</ProjectUpdatesProvider>
</ReduxProjectCartProvider>
<ReduxProjectCartProvider>{children}</ReduxProjectCartProvider>
</FundingCycleCountdownProvider>
</TransactionProvider>
</Provider>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,6 @@ export const ProjectTabs = ({ className }: { className?: string }) => {
panel: <CyclesPayoutsPanel />,
},
{ id: 'tokens', name: t`Tokens`, panel: <TokensPanel /> },
// disabled for now
// {
// id: 'updates',
// name: (
// <div className="flex items-center gap-1">
// <Trans>Updates</Trans>
// {!!projectUpdates.length && (
// <TabBadgeCount count={projectUpdates.length} />
// )}
// </div>
// ),
// panel: <UpdatesPanel />,
// hideTab: !isProjectOwner && projectUpdates.length === 0,
// },
],
[showNftRewards],
)
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit b7d3fbf

Please sign in to comment.