Skip to content

Commit

Permalink
refactor: standardize default a link styling
Browse files Browse the repository at this point in the history
  • Loading branch information
BlairCurrey committed May 10, 2024
1 parent 17b5262 commit 86daf67
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function ViewIncomingPaymentPage() {
<p className='font-medium'>Wallet Address ID </p>
<Link
to={`/wallet-addresses/${incomingPayment.walletAddressId}`}
className='mt-1 underline text-blue-600 hover:text-blue-800 visited:text-purple-600'
className='default-link'
>
{incomingPayment.walletAddressId}
</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function ViewOutgoingPaymentPage() {
<p className='font-medium'>Wallet Address ID </p>
<Link
to={`/wallet-addresses/${outgoingPayment.walletAddressId}`}
className='mt-1 underline text-blue-600 hover:text-blue-800 visited:text-purple-600'
className='default-link'
>
{outgoingPayment.walletAddressId}
</Link>
Expand All @@ -99,10 +99,7 @@ export default function ViewOutgoingPaymentPage() {
</div>
<div>
<p className='font-medium'>Receiver</p>
<Link
className='underline text-blue-600 hover:text-blue-800 visited:text-purple-600'
to={outgoingPayment.receiver}
>
<Link className='default-link' to={outgoingPayment.receiver}>
{outgoingPayment.receiver}
</Link>
</div>
Expand Down
12 changes: 6 additions & 6 deletions packages/frontend/app/routes/peers.$peerId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default function ViewPeerPage() {
<>
The name of the{' '}
<a
className='tooltip'
className='default-link'
href='https://rafiki.dev/concepts/interledger-protocol/peering/'
>
peer
Expand All @@ -147,7 +147,7 @@ export default function ViewPeerPage() {
<>
{"The peer's "}
<a
className='tooltip'
className='default-link'
href='https://interledger.org/developers/rfcs/ilp-addresses/'
>
address on the Interledger network.
Expand All @@ -168,7 +168,7 @@ export default function ViewPeerPage() {
<>
The maximum amount of value that can be sent in a single{' '}
<a
className='tooltip'
className='default-link'
href='https://interledger.org/developers/rfcs/stream-protocol/#35-packets-and-frames'
>
Interledger STREAM Packet
Expand Down Expand Up @@ -213,7 +213,7 @@ export default function ViewPeerPage() {
<>
List of valid tokens to accept when receiving{' '}
<a
className='tooltip'
className='default-link'
href='https://rafiki.dev/concepts/interledger-protocol/connector/#incoming-http'
>
incoming ILP packets from the peer.
Expand All @@ -232,7 +232,7 @@ export default function ViewPeerPage() {
<>
List of valid tokens to present when sending{' '}
<a
className='tooltip'
className='default-link'
href='https://rafiki.dev/concepts/interledger-protocol/connector/#outgoing-http'
>
outgoing ILP packets to the peer.
Expand All @@ -251,7 +251,7 @@ export default function ViewPeerPage() {
<>
Endpoint on the peer to which{' '}
<a
className='tooltip'
className='default-link'
href='https://rafiki.dev/concepts/interledger-protocol/connector/#outgoing-http'
>
outgoing ILP packets
Expand Down
14 changes: 7 additions & 7 deletions packages/frontend/app/routes/peers.create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function CreatePeerPage() {
<>
The name of the{' '}
<a
className='tooltip'
className='default-link'
href='https://rafiki.dev/concepts/interledger-protocol/peering/'
>
peer
Expand All @@ -82,7 +82,7 @@ export default function CreatePeerPage() {
<>
{"The peer's "}
<a
className='tooltip'
className='default-link'
href='https://interledger.org/developers/rfcs/ilp-addresses/'
>
address on the Interledger network.
Expand All @@ -99,7 +99,7 @@ export default function CreatePeerPage() {
<>
The maximum amount of value that can be sent in a single{' '}
<a
className='tooltip'
className='default-link'
href='https://interledger.org/developers/rfcs/stream-protocol/#35-packets-and-frames'
>
Interledger STREAM Packet
Expand Down Expand Up @@ -128,7 +128,7 @@ export default function CreatePeerPage() {
<>
List of valid tokens to accept when receiving{' '}
<a
className='tooltip'
className='default-link'
href='https://rafiki.dev/concepts/interledger-protocol/connector/#incoming-http'
>
incoming ILP packets from the peer.
Expand All @@ -146,7 +146,7 @@ export default function CreatePeerPage() {
<>
List of valid tokens to present when sending{' '}
<a
className='tooltip'
className='default-link'
href='https://rafiki.dev/concepts/interledger-protocol/connector/#outgoing-http'
>
outgoing ILP packets to the peer.
Expand All @@ -164,7 +164,7 @@ export default function CreatePeerPage() {
<>
Endpoint on the peer to which{' '}
<a
className='tooltip'
className='default-link'
href='https://rafiki.dev/concepts/interledger-protocol/connector/#outgoing-http'
>
outgoing ILP packets
Expand Down Expand Up @@ -197,7 +197,7 @@ export default function CreatePeerPage() {
<>
The type of{' '}
<a
className='tooltip'
className='default-link'
href='https://rafiki.dev/concepts/asset/'
>
asset
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/app/styles/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@tailwind components;
@tailwind utilities;

a.tooltip {
a.default-link {
color: revert;
text-decoration: revert;
}

0 comments on commit 86daf67

Please sign in to comment.