Skip to content

Commit

Permalink
Support opening
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Jan 30, 2024
1 parent 35b1bd5 commit 82737b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 56 deletions.
51 changes: 0 additions & 51 deletions src/app/components/NetworkProposalsList/ProposalDetails.tsx

This file was deleted.

8 changes: 4 additions & 4 deletions src/app/pages/SearchResultsPage/SearchResultsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { SubPageCard } from '../../components/SubPageCard'
import { AllTokenPrices } from '../../../coin-gecko/api'
import { ResultListFrame } from './ResultListFrame'
import { TokenDetails } from '../../components/Tokens/TokenDetails'
import { ProposalDetails } from '../../components/NetworkProposalsList/ProposalDetails'
import { ProposalDetailView } from '../ProposalDetailsPage'

/**
* Component for displaying a list of search results
Expand Down Expand Up @@ -120,9 +120,9 @@ export const SearchResultsList: FC<{
<ResultsGroupByType
title={t('search.results.proposals.title')}
results={searchResults.filter((item): item is ProposalResult => item.resultType === 'proposal')}
resultComponent={item => <ProposalDetails proposal={item} showLayer />}
link={() => ''}
linkLabel=""
resultComponent={item => <ProposalDetailView proposal={item} showLayer />}
link={proposal => RouteUtils.getProposalRoute(proposal.network, proposal.id)}
linkLabel={t('search.results.proposals.viewLink')}
/>
</SubPageCard>
</ResultListFrame>
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,8 @@
"viewLink": "View Transaction"
},
"proposals": {
"title": "Proposals"
"title": "Proposals",
"viewLink": "View Proposal"
},
"count_one": "1 result",
"count_other": "{{ count }} results",
Expand Down

0 comments on commit 82737b8

Please sign in to comment.