Skip to content

Commit

Permalink
chore(code): removed useless close action in errorNetworkModal
Browse files Browse the repository at this point in the history
  • Loading branch information
vimercati-samir committed May 5, 2022
1 parent b46ad97 commit d5c99b6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 40 deletions.
5 changes: 0 additions & 5 deletions components/ui/Popups/ErrorNetwork/ErrorNetwork.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
<div class="error-network-container">
<header class="header">
<button type="button" class="close" @click="closeModal">
<x-icon size="1x" />
</button>
</header>
<div class="modal-body">
<div class="custom-modal-content">
<img src="~/assets/svg/mascot/sad_curious.svg" class="mascot" />
Expand Down
22 changes: 0 additions & 22 deletions components/ui/Popups/ErrorNetwork/ErrorNetwork.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,6 @@
&:extend(.modal-gradient);
padding: 1rem;

.header {
width: 100%;
display: flex;
justify-content: flex-end;

.close {
display: flex;
justify-content: ceter;
align-items: center;
padding: 0.35rem;
background: @foreground-alt;
border-radius: @half;
cursor: pointer;

svg {
width: 1.2rem;
height: 1.2rem;
color: @secondary-text;
}
}
}

.modal-body {
.custom-modal-content {
padding: 0 1rem;
Expand Down
8 changes: 1 addition & 7 deletions components/ui/Popups/ErrorNetwork/ErrorNetwork.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import Vue from 'vue'
import { mapState } from 'vuex'
import { XIcon, RefreshCwIcon } from 'satellite-lucide-icons'
import { RefreshCwIcon } from 'satellite-lucide-icons'
/**
* @component Error
Expand All @@ -15,15 +15,9 @@ import { XIcon, RefreshCwIcon } from 'satellite-lucide-icons'
export default Vue.extend({
name: 'ErrorNetwork',
components: {
XIcon,
RefreshCwIcon,
},
props: {
closeModal: {
type: Function,
default: () => {},
required: true,
},
action: {
type: Function,
default: () => {},
Expand Down
7 changes: 1 addition & 6 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
v-click-outside="() => toggleNetworkErrorPopup()"
nopad
>
<UiPopupsErrorNetwork
:close-modal="() => toggleNetworkErrorPopup()"
:action="tryAgain"
/>
<UiPopupsErrorNetwork :action="tryAgain" />
</UiModal>
<UiLoadersPageLoader
:is-loading="true"
Expand Down Expand Up @@ -89,8 +86,6 @@ export default Vue.extend({
return
}
console.log('error', error)
this.$store.commit('ui/toggleModal', {
name: 'errorNetwork',
state: true,
Expand Down

0 comments on commit d5c99b6

Please sign in to comment.