Skip to content

Conversation

@SOFIEBREDESEN
Copy link
Contributor

Description

This update makes it possible to star or unstar fines from the frontend.
A star button has been added, and when users click it, the fine’s starred status is updated using the backend endpoint.

Pull request checklist

Please check if your PR fulfills the following requirements:

  • The PR includes a picture showing visual changes
  • Added Analytics-events if relevant
  • CHANGELOG.md has been updated. Guide

@vercel
Copy link

vercel bot commented Oct 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
kvark Ready Ready Preview Comment Dec 12, 2025 3:26pm

Copy link
Contributor

@AleksanderEvensen AleksanderEvensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mangler fortsatt litt for at dette skal være helt ferdig

Comment on lines 111 to 120
<button
onClick={toggleStar}
className={cn(
'ml-auto flex items-center px-2 py-1 rounded-md border text-sm transition',
fine.starred
? 'text-yellow-500 border-yellow-50 hover:bg-yellow-100'
: 'text-gray-400 border-gray-300 hover:text-yellow-500 hover:border-yellow-500',
)}>
<Star className={cn('w-4 h-4', fine.starred && 'fill-yellow-500')} />
</button>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vi har en egen komponent for knapper. Jeg tror du kan slippe å bruke mye av stylingen her dersom du bruker den

@TIHLDE TIHLDE deleted a comment from AleksanderEvensen Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants