Commit ea946652 authored by Yogi's avatar Yogi Committed by Kushal Pandya

Move 2fa recovery codes to GlCard component

parent bda86133
<script> <script>
import { GlSprintf, GlButton, GlAlert } from '@gitlab/ui'; import { GlSprintf, GlButton, GlAlert, GlCard } from '@gitlab/ui';
import Mousetrap from 'mousetrap'; import Mousetrap from 'mousetrap';
import { __ } from '~/locale'; import { __ } from '~/locale';
import Tracking from '~/tracking'; import Tracking from '~/tracking';
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
recoveryCodeDownloadFilename: RECOVERY_CODE_DOWNLOAD_FILENAME, recoveryCodeDownloadFilename: RECOVERY_CODE_DOWNLOAD_FILENAME,
i18n, i18n,
mousetrap: null, mousetrap: null,
components: { GlSprintf, GlButton, GlAlert, ClipboardButton }, components: { GlSprintf, GlButton, GlAlert, ClipboardButton, GlCard },
mixins: [Tracking.mixin()], mixins: [Tracking.mixin()],
props: { props: {
codes: { codes: {
...@@ -116,8 +116,8 @@ export default { ...@@ -116,8 +116,8 @@ export default {
</gl-sprintf> </gl-sprintf>
</p> </p>
<div <gl-card
class="codes-to-print gl-my-5 gl-p-5 gl-border-solid gl-border-1 gl-border-gray-100 gl-rounded-base" class="codes-to-print gl-my-5"
data-testid="recovery-codes" data-testid="recovery-codes"
data-qa-selector="codes_content" data-qa-selector="codes_content"
> >
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
<span class="gl-font-monospace" data-qa-selector="code_content">{{ code }}</span> <span class="gl-font-monospace" data-qa-selector="code_content">{{ code }}</span>
</li> </li>
</ul> </ul>
</div> </gl-card>
<div class="gl-my-n2 gl-mx-n2 gl-display-flex gl-flex-wrap"> <div class="gl-my-n2 gl-mx-n2 gl-display-flex gl-flex-wrap">
<div class="gl-p-2"> <div class="gl-p-2">
<clipboard-button <clipboard-button
......
---
title: Move 2fa recovery codes to GlCard component
merge_request: 59219
author: Yogi (@yo)
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment