Skip to content

Commit

Permalink
feat: add Alpha DApp alert
Browse files Browse the repository at this point in the history
  • Loading branch information
Another-DevX committed Aug 7, 2024
1 parent cfe9aeb commit 9265478
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/composables/watchers/useGlobalQueryWatchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ export default function useGlobalQueryWatchers() {
const { addAlert, removeAlert } = useAlerts();
const { t } = useI18n();

onMounted(() => {
addAlert({
id: 'alpha-alert',
label: t('alerts.alpha-alert'),
type: AlertType.ERROR,
persistent: false,
// action: refetchPrices,
// actionLabel: t('alerts.retry-label'),
priority: AlertPriority.HIGH,
});
});

watch(priceQueryError, () => {
if (priceQueryError.value) {
addAlert({
Expand Down
1 change: 1 addition & 0 deletions src/locales/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"pool-fetch-error": "Failed to fetch pool.",
"pools-fetch-error": "Failed to fetch pools.",
"price-fetch-error": "Our pricing provider, CoinGecko, is currently down.",
"alpha-alert": "This Alpha DApp Has Not Been Audited, Use With Caution And At Your Own Risk.",
"retry-label": "Refresh to try again",
"boostedPools": "Increased yields, greater capital efficiency, deeper liquidity. Try Balancer Boosted pools now →",
"vebalL2": "Staking is live on Polygon and Arbitrum. Incentives for eligible pools will resume on April 28.",
Expand Down

0 comments on commit 9265478

Please sign in to comment.