forked from kodadot/nft-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/init/swapLanding
- Loading branch information
Showing
6 changed files
with
124 additions
and
28 deletions.
There are no files selected for viewing
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
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,48 @@ | ||
<template> | ||
<div class="flex flex-col w-full"> | ||
<slot /> | ||
<div | ||
v-if="show" | ||
class="flex items-center gap-2 bg-yellow-50 border border-yellow-200 rounded-md p-3 !mt-2" | ||
> | ||
<NeoIcon | ||
icon="warning" | ||
class="text-yellow-500" | ||
size="small" | ||
/> | ||
|
||
<div> | ||
<p class="text-sm text-yellow-700"> | ||
{{ $t('mint.notRecommendedModify') }} | ||
</p> | ||
<div | ||
v-if="!disabledUndo" | ||
class="w-full flex justify-end" | ||
> | ||
<NeoButton | ||
variant="text" | ||
class="flex items-center gap-1 text-sm !text-yellow-600 hover:!text-yellow-700 capitalize" | ||
@click="emit('undo')" | ||
> | ||
<NeoIcon | ||
icon="undo" | ||
size="small" | ||
/> | ||
{{ $t('general.undo') }} | ||
</NeoButton> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { NeoButton, NeoIcon } from '@kodadot1/brick' | ||
defineProps<{ | ||
show: boolean | ||
disabledUndo?: boolean | ||
}>() | ||
const emit = defineEmits(['undo']) | ||
</script> |
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