Skip to content

Commit 90fada9

Browse files
authored
Merge pull request #52 from govtechmy/staging
hotfixes
2 parents a0d76c7 + 0bf1c2c commit 90fada9

File tree

30 files changed

+812
-116
lines changed

30 files changed

+812
-116
lines changed

.github/pull_request_template.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Summarise the feature
2+
3+
Issue ticket # (issue)
4+
5+
Description:
6+
7+
## Type of change
8+
9+
- [ ] Bug fix (non-breaking change which fixes an issue)
10+
- [ ] New feature (non-breaking change which adds functionality)
11+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12+
- [ ] This change requires a documentation update
13+
14+
## Affected endpoints
15+
16+
/?
17+
18+
## Checklist
19+
20+
- [ ] My code follows the style guidelines of this project
21+
- [ ] I have performed a self-review of my code
22+
- [ ] I have commented my code, particularly in hard-to-understand areas
23+
- [ ] I have made corresponding changes to the documentation
24+
- [ ] My changes generate no new warnings
25+
- [ ] I have added tests that prove my fix is effective or that my feature works

components/Combobox/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,10 @@ const ComboBox = <T extends unknown>({
147147
</li>
148148
) : items.length > 100 ? (
149149
<>
150-
<li
151-
key="total-size"
152-
style={{ height: rowVirtualizer.totalSize }}
153-
/>
150+
<li style={{ height: rowVirtualizer.totalSize }} />
154151
{rowVirtualizer.virtualItems.map(virtualRow => (
155152
<ComboOption<T>
153+
key={`vc-${virtualRow.index}`}
156154
option={items[virtualRow.index]}
157155
total={options.length}
158156
format={format}
@@ -178,6 +176,7 @@ const ComboBox = <T extends unknown>({
178176
) : (
179177
items.map((item, i) => (
180178
<ComboOption<T>
179+
key={`cb-${item.value}`}
181180
option={item}
182181
total={options.length}
183182
format={format}

components/Combobox/option.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function ComboOptionInner<T>(
3939
) {
4040
return (
4141
<li
42-
key={index}
42+
key={`cop-${index}`}
4343
ref={ref}
4444
role="option"
4545
aria-selected={isSelected}
@@ -79,7 +79,7 @@ function ComboOptionInner<T>(
7979
)}
8080
{isSelected && (
8181
<span className="absolute inset-y-0 right-0 flex items-center">
82-
<CheckCircleIcon className="h-4 w-4 text-primary dark:text-secondary" />
82+
<CheckCircleIcon className="text-primary h-4 w-4 dark:text-secondary" />
8383
</span>
8484
)}
8585
</div>

components/Drawer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const DrawerContent = React.forwardRef<
4040
<DrawerPrimitive.Content
4141
ref={ref}
4242
className={cn(
43-
"fixed inset-x-0 bottom-0 z-50 flex max-h-[90dvh] min-w-[360px] flex-col rounded-t-xl border border-otl-gray-200 bg-bg-white",
43+
"fixed inset-x-0 bottom-0 z-50 flex max-h-[90dvh] min-w-[360px] flex-col overflow-auto rounded-t-xl border border-otl-gray-200 bg-bg-white after:!inset-0 after:!h-0",
4444
className
4545
)}
4646
{...props}

0 commit comments

Comments
 (0)