mirror of
https://github.com/modrinth/code.git
synced 2026-08-26 17:44:50 +00:00
* feat: refactor button components
* fix: qa
* fix: storybook
* a11y: pass
* fix: build
* fix: rename default ->md
* fix: lint
* docs: buttons.md
* refactor part 1
* refactor part 2
* fix: undo refactor for fresh restart
* refactor
* Revert "refactor"
This reverts commit 96d65902d7.
* refactor: part 1
* fix: qa
* fix: qa
* fix: qa
* fix: qa
* fix: qa
* fix: qa
* fix: qa
* fix: qa
* fix: remove text-contrast
* fix: qa
* fix: v-tooltip
* fix: lint
* fix: split broken
* fix: passkey qa
* fix: qa
* fix: qa
* fix: prepr
* fix: splitbutton
* improve button group seam
---------
Signed-off-by: Calum H. <calum@modrinth.com>
Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
48 lines
1.2 KiB
Vue
48 lines
1.2 KiB
Vue
<script setup lang="ts">
|
|
import { MessageIcon } from '@modrinth/assets'
|
|
import { ButtonLink, defineMessages, PagewideBanner, useVIntl } from '@modrinth/ui'
|
|
|
|
const { formatMessage } = useVIntl()
|
|
|
|
const messages = defineMessages({
|
|
title: {
|
|
id: 'layout.banner.tin-mismatch.title',
|
|
defaultMessage: 'Tax form failed',
|
|
},
|
|
description: {
|
|
id: 'layout.banner.tin-mismatch.description',
|
|
defaultMessage:
|
|
"Your withdrawals are temporarily locked because your TIN or SSN didn't match IRS records. Please contact support to reset and resubmit your tax form.",
|
|
},
|
|
action: {
|
|
id: 'layout.banner.tin-mismatch.action',
|
|
defaultMessage: 'Contact support',
|
|
},
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<PagewideBanner variant="error">
|
|
<template #title>
|
|
<span>{{ formatMessage(messages.title) }}</span>
|
|
</template>
|
|
<template #description>
|
|
<span>{{ formatMessage(messages.description) }}</span>
|
|
</template>
|
|
<template #actions_right>
|
|
<div class="flex w-fit flex-row">
|
|
<ButtonLink
|
|
type="colored"
|
|
color="red"
|
|
to="https://support.modrinth.com"
|
|
target="_blank"
|
|
rel="noopener"
|
|
>
|
|
<MessageIcon />
|
|
{{ formatMessage(messages.action) }}
|
|
</ButtonLink>
|
|
</div>
|
|
</template>
|
|
</PagewideBanner>
|
|
</template>
|