Skip to content

Commit

Permalink
fix: remove breadcrumbs from pages where UX is awkward
Browse files Browse the repository at this point in the history
  • Loading branch information
corwintines committed Jan 10, 2022
1 parent 343f064 commit e76e615
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 8 additions & 1 deletion vue-app/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,14 @@ export default class App extends Vue {
}
get showBreadCrumb(): boolean {
const excludedRoutes = ['landing', 'join', 'transaction-success', 'verify']
const excludedRoutes = [
'landing',
'join',
'transaction-success',
'verify',
'project-added',
'verified',
]
return !excludedRoutes.includes(this.$route.name || '')
}
Expand Down
8 changes: 1 addition & 7 deletions vue-app/src/views/TransactionSuccess.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
</div>
<div class="dropshadow">
<div class="content">
<breadcrumbs :path="path" />
<span class="contributed-icon">🎉</span>
<p
v-if="$route.params.type === 'reallocation'"
Expand Down Expand Up @@ -75,13 +74,12 @@ import { RoundInfo } from '@/api/round'
import TransactionReceipt from '@/components/TransactionReceipt.vue'
import TimeLeft from '@/components/TimeLeft.vue'
import ImageResponsive from '@/components/ImageResponsive.vue'
import Breadcrumbs from '@/components/Breadcrumbs.vue'
// Utils
import { formatAmount } from '@/utils/amounts'
@Component({
components: { TransactionReceipt, TimeLeft, ImageResponsive, Breadcrumbs },
components: { TransactionReceipt, TimeLeft, ImageResponsive },
})
export default class TransactionSuccess extends Vue {
get contribution(): BigNumber | null {
Expand All @@ -92,10 +90,6 @@ export default class TransactionSuccess extends Vue {
return this.$store.state.currentRound
}
get path(): string {
return this.$route.path
}
formatContribution() {
return this.contribution ? formatAmount(this.contribution, 18) : ''
}
Expand Down

0 comments on commit e76e615

Please sign in to comment.