Skip to content

Commit

Permalink
Apply review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Oct 17, 2024
1 parent aa67130 commit 70b97da
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client/src/components/SearchBar/SwapLocationsButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { TripQueryVariables } from '../../gql/graphql.ts';
import swapImg from '../../static/img/swap.svg';

const HINT = 'Swap from/to';
import icon from '../../static/img/swap.svg';

export function SwapLocationsButton({
tripQueryVariables,
Expand All @@ -19,8 +17,8 @@ export function SwapLocationsButton({
};

return (
<button className="swap-from-to" onClick={swapFromTo} title={HINT}>
<img alt={HINT} src={swapImg} />
<button className="swap-from-to" onClick={swapFromTo} title="Swap from/to">
<img alt="Swap from/to" src={icon} />
</button>
);
}

0 comments on commit 70b97da

Please sign in to comment.