Skip to content

Commit

Permalink
Update to wouter-preact 3.0 (#6048)
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya authored Feb 16, 2024
1 parent 10fa03e commit f8509d8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,11 @@ export default function FilePickerApp({ onSubmit }: FilePickerAppProps) {
ref={formRef}
>
{isEditing && (
<RouterLink href="/app/basic-lti-launch" data-testid="back-link">
<RouterLink
href="/app/basic-lti-launch"
data-testid="back-link"
asChild
>
<Link classes="flex gap-x-1 items-center" underline="always">
<ArrowLeftIcon className="w-[0.875em] h-[0.875em]" />
Back to assignment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function InstructorToolbar() {
{assignmentName}
</h1>
{editingEnabled && (
<RouterLink href="/app/content-item-selection">
<RouterLink href="/app/content-item-selection" asChild>
<Link
classes="text-xs"
data-testid="edit"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function LaunchErrorDialog({
let extraActions;
if (canEdit) {
extraActions = (
<RouterLink href="/app/content-item-selection">
<RouterLink href="/app/content-item-selection" asChild>
<Link underline="always" data-testid="edit-link">
Edit assignment
</Link>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"sass": "^1.69.6",
"tailwindcss": "^3.3.3",
"tiny-emitter": "^2.1.0",
"wouter-preact": "^2.11.0"
"wouter-preact": "^3.0.0"
},
"devDependencies": {
"@hypothesis/frontend-testing": "^1.2.0",
Expand Down
11 changes: 1 addition & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7701,7 +7701,7 @@ __metadata:
tailwindcss: ^3.3.3
tiny-emitter: ^2.1.0
typescript: ^5.2.2
wouter-preact: ^2.11.0
wouter-preact: ^3.0.0
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -11537,15 +11537,6 @@ __metadata:
languageName: node
linkType: hard

"wouter-preact@npm:^2.11.0":
version: 2.11.0
resolution: "wouter-preact@npm:2.11.0"
peerDependencies:
preact: ^10.0.0
checksum: c4dd3f995dc664ecc2043a3ece6a415b85e88261a47f52a690354ee38a957eb8b03eac479a165dd464d867d1903774afa5c31b574c6fb0bfb991d191caea7243
languageName: node
linkType: hard

"wouter-preact@npm:^3.0.0":
version: 3.0.0
resolution: "wouter-preact@npm:3.0.0"
Expand Down

0 comments on commit f8509d8

Please sign in to comment.