-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make export button more stylistically consistent (#6412)
- Loading branch information
Showing
7 changed files
with
44 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
frontend/src/components/features/export/export-actions.tsx
This file was deleted.
Oops, something went wrong.
20 changes: 14 additions & 6 deletions
20
...ts/features/feedback/feedback-actions.tsx → ...eatures/trajectory/trajectory-actions.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,36 @@ | ||
import ThumbsUpIcon from "#/icons/thumbs-up.svg?react"; | ||
import ThumbDownIcon from "#/icons/thumbs-down.svg?react"; | ||
import { FeedbackActionButton } from "#/components/shared/buttons/feedback-action-button"; | ||
import ExportIcon from "#/icons/export.svg?react"; | ||
import { TrajectoryActionButton } from "#/components/shared/buttons/trajectory-action-button"; | ||
|
||
interface FeedbackActionsProps { | ||
interface TrajectoryActionsProps { | ||
onPositiveFeedback: () => void; | ||
onNegativeFeedback: () => void; | ||
onExportTrajectory: () => void; | ||
} | ||
|
||
export function FeedbackActions({ | ||
export function TrajectoryActions({ | ||
onPositiveFeedback, | ||
onNegativeFeedback, | ||
}: FeedbackActionsProps) { | ||
onExportTrajectory, | ||
}: TrajectoryActionsProps) { | ||
return ( | ||
<div data-testid="feedback-actions" className="flex gap-1"> | ||
<FeedbackActionButton | ||
<TrajectoryActionButton | ||
testId="positive-feedback" | ||
onClick={onPositiveFeedback} | ||
icon={<ThumbsUpIcon width={15} height={15} />} | ||
/> | ||
<FeedbackActionButton | ||
<TrajectoryActionButton | ||
testId="negative-feedback" | ||
onClick={onNegativeFeedback} | ||
icon={<ThumbDownIcon width={15} height={15} />} | ||
/> | ||
<TrajectoryActionButton | ||
testId="export-trajectory" | ||
onClick={onExportTrajectory} | ||
icon={<ExportIcon width={15} height={15} />} | ||
/> | ||
</div> | ||
); | ||
} |
17 changes: 0 additions & 17 deletions
17
frontend/src/components/shared/buttons/export-action-button.tsx
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
...shared/buttons/feedback-action-button.tsx → ...ared/buttons/trajectory-action-button.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.