Skip to content

Commit

Permalink
feat: dispaly pathways icons
Browse files Browse the repository at this point in the history
  • Loading branch information
sdlyy committed Mar 19, 2024
1 parent 953a09c commit d33fc04
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions packages/frontend/src/pages/Applications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export function Applications() {
<div className="px-6">TOKEN</div>
<div>SOURCE CHAIN</div>
<div>ADDRESS</div>
<div>PATHWAYS</div>
<div>CONFIG</div>
<div />
</div>
Expand Down Expand Up @@ -100,12 +101,20 @@ function OAppRow(props: { oApp: OAppWithConfigs; sourceChain: ChainId }) {
{getPrettyChainName(props.sourceChain)}
{<BlockchainIcon chainId={props.sourceChain} />}
</span>
<span>
<BlockchainAddress address={props.oApp.address} />
<span className="flex items-center">
<BlockchainAddress alwaysShort address={props.oApp.address} />
</span>
<span>
<span className="flex items-center gap-1">
{props.oApp.configurations
.map((config) => config.targetChainId)
.map((chainId) => (
<BlockchainIcon chainId={chainId} />
))}
</span>
<span className="flex items-center">
{hasDefaultConfig ? <DefaultConfigBadge /> : <CustomConfigBadge />}
</span>

<button
className="brightness-100 filter transition-all duration-300 hover:brightness-[120%]"
onClick={hasDefaultConfig ? forwardToDefaults : toggleExpand}
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
gridTemplateColumns: {
multisig: '3fr 7fr 4fr 3fr 1fr',
'multisig-small': '3fr 1fr 3fr 1fr',
applications: '4fr 2fr 6fr 2fr 1fr',
applications: '4fr 2fr 3fr 4fr 2fr 1fr',
'applications-small': '3fr 2fr 6fr 2fr 1fr',
'adapter-params-small': '2fr 1fr 2fr',
'adapter-params': '2fr 1fr 2fr 7fr',
Expand Down

0 comments on commit d33fc04

Please sign in to comment.