Skip to content

Commit

Permalink
fix: requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed Jun 27, 2023
1 parent 34c4891 commit d19bc85
Show file tree
Hide file tree
Showing 17 changed files with 61 additions and 37 deletions.
34 changes: 29 additions & 5 deletions components/common/InfoContent.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<div class="w-full rounded-xl bg-white p-3 dark:bg-neutral-900">
<div class="flex justify-between">
<div class="text-sm text-gray-secondary dark:text-neutral-400">{{ label }}</div>
<button v-if="content" class="text-sm font-medium text-primary-400 dark:text-primary-500" @click="copy">
<div class="info-content">
<div class="info-content-inner">
<div class="info-content-label">{{ label }}</div>
<button v-if="content" class="info-content-copy-button" @click="copy">
<template v-if="!copied">
<DocumentDuplicateIcon class="relative -top-px inline-block h-4 w-4" aria-hidden="true" />
Copy
Expand Down Expand Up @@ -37,4 +37,28 @@ const content = computed(() => props.copyContent || "");
const { copy, copied } = useCopy(content);
</script>

<style lang="scss"></style>
<style lang="scss" scoped>
.lite.dark {
.info-content {
.info-content-inner {
.info-content-copy-button {
@apply text-primary-300;
}
}
}
}
.info-content {
@apply w-full rounded-xl bg-white p-3 dark:bg-neutral-900;
.info-content-inner {
@apply flex justify-between;
.info-content-label {
@apply text-sm text-gray-secondary dark:text-neutral-400;
}
.info-content-copy-button {
@apply text-sm font-medium text-primary-400 dark:text-primary-500;
}
}
}
</style>
6 changes: 3 additions & 3 deletions components/header/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const networkNav: Navigation[] = reactive([
.panel-container-desktop {
@apply relative z-20 mx-auto flex h-full items-center justify-between px-5;
@media screen and (min-width: 720px) {
@apply px-6;
@apply grid grid-cols-[216px_1fr_216px] px-6;
}
@media screen and (min-width: 1024px) {
@apply px-9;
Expand All @@ -177,13 +177,13 @@ const networkNav: Navigation[] = reactive([
@apply font-semibold;
}
.navigation-container {
@apply hidden h-full lg:flex;
@apply hidden h-full justify-self-center lg:flex;
.popover-group {
@apply flex;
}
}
.right-side-menu {
@apply mr-5 hidden lg:block;
@apply hidden lg:block;
}
.popover-button {
@apply z-10 -mr-4 p-4 focus:outline-none focus-visible:outline-none lg:hidden;
Expand Down
2 changes: 1 addition & 1 deletion components/loaders/Connecting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const title = computed(() => {
if (walletName.value) {
return `Logging in with ${walletName.value}`;
}
return "Logging in...";
return "Loading...";
});
</script>

Expand Down
8 changes: 4 additions & 4 deletions components/sidebar/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<SidebarAccountButton />
<div class="navbar-links-container">
<NuxtLink :to="{ name: 'index' }" class="navbar-link">
<HomeIcon class="navbar-link-icon" aria-hidden="true" />
<span class="navbar-link-label">Home</span>
<WalletIcon class="navbar-link-icon" aria-hidden="true" />
<span class="navbar-link-label">Assets</span>
</NuxtLink>
<NuxtLink :to="{ name: 'payments' }" class="navbar-link">
<ArrowsRightLeftIcon class="navbar-link-icon" aria-hidden="true" />
<span class="navbar-link-label">Payments</span>
<span class="navbar-link-label">Transactions</span>
</NuxtLink>
<NuxtLink :to="{ name: 'contacts' }" class="navbar-link">
<UserGroupIcon class="navbar-link-icon" aria-hidden="true" />
Expand Down Expand Up @@ -41,7 +41,7 @@
<script lang="ts" setup>
import { ref } from "vue";
import { ArrowsRightLeftIcon, ChevronDownIcon, HomeIcon, UserGroupIcon } from "@heroicons/vue/24/outline";
import { ArrowsRightLeftIcon, ChevronDownIcon, UserGroupIcon, WalletIcon } from "@heroicons/vue/24/outline";
import { storeToRefs } from "pinia";
import { useNetworkStore } from "@/store/network";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
Make another transaction
</CommonButtonTopLink>
<CommonButton as="RouterLink" :to="{ name: 'index' }" class="mx-auto" variant="primary-solid">
Go to Home page
Go to Assets page
</CommonButton>
</TransactionConfirmModalFooter>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
Make another transaction
</CommonButtonTopLink>
<CommonButton as="RouterLink" :to="{ name: 'index' }" class="mx-auto" variant="primary-solid">
Go to Home page
Go to Assets page
</CommonButton>
</TransactionConfirmModalFooter>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@

<TransactionConfirmModalFooter>
<CommonButton as="RouterLink" :to="{ name: 'index' }" class="mx-auto mt-4" variant="primary-solid">
Go to Home page
Go to Assets page
</CommonButton>
</TransactionConfirmModalFooter>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
Make another transaction
</CommonButtonTopLink>
<CommonButton as="RouterLink" :to="{ name: 'index' }" class="mx-auto" variant="primary-solid">
Go to Home page
Go to Assets page
</CommonButton>
</TransactionConfirmModalFooter>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
Make another transaction
</CommonButtonTopLink>
<CommonButton as="RouterLink" :to="{ name: 'index' }" class="mx-auto" variant="primary-solid">
Go to Home page
Go to Assets page
</CommonButton>
</TransactionConfirmModalFooter>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
Make another transaction
</CommonButtonTopLink>
<CommonButton as="RouterLink" :to="{ name: 'index' }" class="mx-auto" variant="primary-solid">
Go to Home page
Go to Assets page
</CommonButton>
</TransactionConfirmModalFooter>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@

<TransactionConfirmModalFooter>
<CommonButton as="RouterLink" :to="{ name: 'index' }" class="mx-auto mt-4" variant="primary-solid">
Go to Home page
Go to Assets page
</CommonButton>
</TransactionConfirmModalFooter>
</div>
Expand Down
10 changes: 5 additions & 5 deletions pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<template>
<CommonPage title="Home">
<CommonPage title="Assets">
<template #era>
<HomeEra />
<AssetsEra />
</template>
<template #lite>
<HomeLite />
<AssetsLite />
</template>
</CommonPage>
</template>

<script lang="ts" setup>
import HomeEra from "@/views/zksync/era/Home.vue";
import HomeLite from "@/views/zksync/lite/Home.vue";
import AssetsEra from "@/views/zksync/era/Assets.vue";
import AssetsLite from "@/views/zksync/lite/Assets.vue";
</script>

<style lang="scss" scoped></style>
12 changes: 6 additions & 6 deletions pages/payments/all.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<template>
<BackButton :fallback="{ name: 'payments' }" />
<CommonPage title="All payments">
<BackButton :fallback="{ name: 'transactions' }" />
<CommonPage title="All transactions">
<template #era>
<AllPaymentsEra />
<AllTransactionsEra />
</template>
<template #lite>
<AllPaymentsLite />
<AllTransactionsLite />
</template>
</CommonPage>
</template>

<script lang="ts" setup>
import AllPaymentsEra from "@/views/zksync/era/payments/All.vue";
import AllPaymentsLite from "@/views/zksync/lite/payments/All.vue";
import AllTransactionsEra from "@/views/zksync/era/transactions/All.vue";
import AllTransactionsLite from "@/views/zksync/lite/transactions/All.vue";
</script>

<style lang="scss" scoped></style>
10 changes: 5 additions & 5 deletions pages/payments/index.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<template>
<CommonPage title="Payments">
<CommonPage title="Transactions">
<template #era>
<PaymentsEra />
<TransactionsEra />
</template>
<template #lite>
<PaymentsLite />
<TransactionsLite />
</template>
</CommonPage>
</template>

<script lang="ts" setup>
import PaymentsEra from "@/views/zksync/era/payments/Index.vue";
import PaymentsLite from "@/views/zksync/lite/payments/Index.vue";
import TransactionsEra from "@/views/zksync/era/payments/Index.vue";
import TransactionsLite from "@/views/zksync/lite/payments/Index.vue";
</script>

<style lang="scss" scoped></style>
2 changes: 1 addition & 1 deletion tests/e2e/features/withdraw.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Feature: Withdraw
#second part - id1434
# Then Element with "xpath" "//*[@class='modal-card']//a[@href='/']" should be "clickable"
# When I click by "xpath" with "//*[@class='modal-card']//a[@href='/']" value
# Then Element with "xpath" "//h1[text()='Home']" should be "visible"
# Then Element with "xpath" "//h1[text()='Assets']" should be "visible"

@id1274
Scenario: Withdraw - Send - [Transaction] 0 funds
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit d19bc85

Please sign in to comment.