Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
JSKitty committed Nov 8, 2023
1 parent 78bb99f commit 3073919
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 6 additions & 4 deletions scripts/dashboard/CreateWallet.vue
Expand Up @@ -42,7 +42,7 @@ async function generateWallet() {
<div class="col-md-12 dashboard-title">
<h3 class="pivx-bold-title-smaller">
<span> {{ translation.dCardOneTitle }} </span>
<div> {{ translation.dCardOneSubTitle }} </div>
<div>{{ translation.dCardOneSubTitle }}</div>
</h3>
<p>
{{ translation.dCardOneDesc }}
Expand All @@ -51,8 +51,9 @@ async function generateWallet() {

<button class="pivx-button-big" @click="generateWallet()">
<span class="buttoni-icon" v-html="pLogo"> </span>
<span class="buttoni-text"> {{ translation.dCardOneButton }} </span
>
<span class="buttoni-text">
{{ translation.dCardOneButton }}
</span>
</button>
</div>
</div>
Expand Down Expand Up @@ -103,7 +104,8 @@ async function generateWallet() {
type="button"
class="pivx-button-big"
@click="showModal = false"
> {{ translation.writtenDown }}
>
{{ translation.writtenDown }}
</button>
</center>
</template>
Expand Down
2 changes: 1 addition & 1 deletion scripts/dashboard/GenKeyWarning.vue
Expand Up @@ -84,7 +84,7 @@ function submit() {
modalClass="exportKeysModalColor"
>
<template #header>
<h5 class="modal-title"> {{ translation.encryptWallet }} </h5>
<h5 class="modal-title">{{ translation.encryptWallet }}</h5>
<button
type="button"
class="close"
Expand Down
4 changes: 3 additions & 1 deletion scripts/i18n.js
Expand Up @@ -27,7 +27,9 @@ const defaultLang = 'en';
* @returns the 'parent' language of a langcode
*/
function getParentLanguage(langName) {
const strParentCode = langName.includes('-') ? langName.split('-')[0] : defaultLang;
const strParentCode = langName.includes('-')
? langName.split('-')[0]
: defaultLang;
// Ensure the code exists
if (arrActiveLangs.find((lang) => lang.code === strParentCode)) {
return strParentCode;
Expand Down

0 comments on commit 3073919

Please sign in to comment.