-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updated basic-modal * added invalid-network-modal * added withdraw-modal * added claim-modal * added deposit-modal * fix invalid-network-modal --------- Co-authored-by: Yehor Podporinov <[email protected]>
- Loading branch information
1 parent
aef3733
commit 694b94c
Showing
27 changed files
with
938 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<template> | ||
<basic-modal | ||
class="claim-modal" | ||
:is-shown="isShown" | ||
:is-close-by-click-outside="isCloseByClickOutside" | ||
:title="$t('claim-modal.title')" | ||
@update:is-shown="emit('update:is-shown', $event)" | ||
> | ||
<template #subtitle> | ||
<i18n-t | ||
class="claim-modal__subtitle" | ||
keypath="claim-modal.subtitle" | ||
tag="p" | ||
> | ||
<template #reward> | ||
<span class="claim-modal__reward"> | ||
{{ $t('claim-modal.reward', { amount }) }} | ||
</span> | ||
</template> | ||
</i18n-t> | ||
</template> | ||
<template #default="{ modal }"> | ||
<div class="claim-modal__buttons-wrp"> | ||
<app-button | ||
class="claim-modal__btn" | ||
color="secondary" | ||
:text="$t('claim-modal.close-btn')" | ||
@click="modal.close" | ||
/> | ||
<app-button | ||
class="claim-modal__btn" | ||
:text="$t('claim-modal.claim-btn')" | ||
/> | ||
</div> | ||
</template> | ||
</basic-modal> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import BasicModal from '../BasicModal.vue' | ||
import { AppButton } from '@/common' | ||
const emit = defineEmits<{ | ||
(e: 'update:is-shown', v: boolean): void | ||
}>() | ||
withDefaults( | ||
defineProps<{ | ||
isShown: boolean | ||
amount: string | ||
isCloseByClickOutside?: boolean | ||
}>(), | ||
{ | ||
isCloseByClickOutside: true, | ||
}, | ||
) | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.claim-modal__subtitle { | ||
font: inherit; | ||
} | ||
.claim-modal__reward { | ||
@include body-1-semi-bold; | ||
} | ||
.claim-modal__buttons-wrp { | ||
margin-top: toRem(40); | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
gap: toRem(16); | ||
@include respond-to(medium) { | ||
margin-top: toRem(36); | ||
} | ||
} | ||
.claim-modal .claim-modal__btn { | ||
min-width: toRem(200); | ||
@include respond-to(medium) { | ||
min-width: min-content; | ||
width: 100%; | ||
} | ||
} | ||
</style> |
Oops, something went wrong.