Skip to content

Commit 513811c

Browse files
shreeyash07frozenhelium
authored andcommitted
minor fixes
1 parent b8c0069 commit 513811c

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

manager-dashboard/app/components/MobilePreview/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function MobilePreview(props: Props) {
5959
{(popupTitle || popupDescription || popupIcons) && (
6060
<div className={_cs(styles.popup, popupClassName)}>
6161
<div className={styles.details}>
62-
<div>
62+
<div className={styles.popupTitle}>
6363
{popupTitle}
6464
</div>
6565
<div>

manager-dashboard/app/components/MobilePreview/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@
7171

7272
.details {
7373
flex-grow: 1;
74+
75+
.popup-title {
76+
font-weight: var(--font-weight-bold);
77+
}
7478
}
7579

7680
.icons {

manager-dashboard/app/views/NewTutorial/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,11 +588,11 @@ function NewTutorial(props: Props) {
588588
{informationPages?.map((page, i) => (
589589
<ExpandableContainer
590590
key={page.pageNumber}
591-
header={page.title || `Intro ${page.pageNumber}`}
591+
header={page.title || `Intro ${i + 1}`}
592592
openByDefault={i === informationPages.length - 1}
593593
actions={(
594594
<Button
595-
name={i}
595+
name={i + 1}
596596
onClick={onInformationPageRemove}
597597
variant="action"
598598
title="Delete page"

manager-dashboard/app/views/NewTutorial/utils.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
nullValue,
99
ArraySchema,
1010
addCondition,
11-
greaterThanCondition,
1211
} from '@togglecorp/toggle-form';
1312

1413
import {
@@ -628,7 +627,7 @@ export const tutorialFormSchema: TutorialFormSchema = {
628627
required: true,
629628
validations: [
630629
integerCondition,
631-
greaterThanCondition(0),
630+
greaterThanOrEqualToCondition(0),
632631
],
633632
},
634633
description: {
@@ -676,7 +675,7 @@ export const tutorialFormSchema: TutorialFormSchema = {
676675
required: true,
677676
validations: [
678677
integerCondition,
679-
greaterThanCondition(0),
678+
greaterThanOrEqualToCondition(0),
680679
],
681680
},
682681
}),

0 commit comments

Comments
 (0)