Merge pull request #1871 from Emurgo/ashisherc/ch7466/add-icons-to-topbar
add icons for dashboard and dleegationList tab
add icons for dashboard and dleegationList tab
<?xml version="1.0" encoding="UTF-8"?>
<svg width="25px" height="25px" viewBox="0 0 25 25" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>7571436E-C3DB-42AA-8601-E4D45DF95ADD</title>
<defs>
<rect id="path-1" x="128" y="100" width="1202" height="20" rx="8"></rect>
<filter x="-1.6%" y="-85.0%" width="103.2%" height="290.0%" filterUnits="objectBoundingBox" id="filter-2">
<feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feGaussianBlur stdDeviation="6" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
</filter>
</defs>
<g id="*transactions" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Transactions-(status-wording)" transform="translate(-909.000000, -118.000000)">
<rect id="bg" fill="#F0F3F5" x="0" y="0" width="1366" height="1178"></rect>
<g id="Rectangle-5">
<use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use>
<use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-1"></use>
</g>
<rect id="Rectangle-5" fill="#FFFFFF" x="128" y="108" width="1202" height="1039" rx="8"></rect>
<g id="tabs" transform="translate(127.000000, 100.000000)">
<path d="M8,0 L1194.99917,0 C1199.41745,-1.26386638e-13 1202.99917,3.581722 1202.99917,8 L1202.99917,62 L1202.99917,62 L0,62 L0,8 C-5.41083001e-16,3.581722 3.581722,8.11624501e-16 8,0 Z" id="Rectangle-5" fill="#F0F3F5"></path>
<g id="tab/default-copy-2" transform="translate(729.605985, 0.000000)">
<path d="M4,1.36424205e-12 L233.197007,1.36424205e-12 C235.406146,1.34813936e-12 237.197007,1.790861 237.197007,4 L237.197007,62 L237.197007,62 L0,62 L0,4 C-2.705415e-16,1.790861 1.790861,1.36464786e-12 4,1.36424205e-12 Z" id="Rectangle-7-Copy-2" opacity="0"></path>
<g id="Group" transform="translate(53.098504, 18.000000)" fill="#6B7384">
<g id="icon-/-transactions" transform="translate(0.000000, 1.000000)">
<path d="M10.143444,10.8686525 C10.7351364,10.8686525 11.2172201,11.3761934 11.2172201,11.9998 L11.2172201,11.9998 L11.2172201,19.8686525 C11.2172201,20.4912754 10.7351364,20.9998 10.143444,20.9998 L10.143444,20.9998 L4.5737761,20.9998 C3.98208376,20.9998 3.5,20.4912754 3.5,19.8686525 L3.5,19.8686525 L3.5,11.9998 C3.5,11.3761934 3.98208376,10.8686525 4.5737761,10.8686525 L4.5737761,10.8686525 Z M19.4262239,14.8020951 C20.0179162,14.8020951 20.5,15.3106197 20.5,15.9342262 L20.5,15.9342262 L20.5,19.8686525 C20.5,20.4912754 20.0179162,20.9998 19.4262239,20.9998 L19.4262239,20.9998 L13.856556,20.9998 C13.2638936,20.9998 12.7818099,20.4912754 12.7818099,19.8686525 L12.7818099,19.8686525 L12.7818099,15.9342262 C12.7818099,15.3106197 13.2638936,14.8020951 13.856556,14.8020951 L13.856556,14.8020951 Z M9.53332192,12.6391443 L5.18292822,12.6391443 L5.18292822,19.2283246 L9.53332192,19.2283246 L9.53332192,12.6391443 Z M18.8161018,16.5735705 L14.4666781,16.5735705 L14.4666781,19.2283246 L18.8161018,19.2283246 L18.8161018,16.5735705 Z M19.4262239,2.9998 C20.0179162,2.9998 20.5,3.50734098 20.5,4.13094754 L20.5,4.13094754 L20.5,11.9998 C20.5,12.6234066 20.0179162,13.1309475 19.4262239,13.1309475 L19.4262239,13.1309475 L13.856556,13.1309475 C13.2638936,13.1309475 12.7818099,12.6234066 12.7818099,11.9998 L12.7818099,11.9998 L12.7818099,4.13094754 C12.7818099,3.50734098 13.2638936,2.9998 13.856556,2.9998 L13.856556,2.9998 Z M18.8161018,4.7702918 L14.4666781,4.7702918 L14.4666781,11.3604557 L18.8161018,11.3604557 L18.8161018,4.7702918 Z M10.143444,2.9998 C10.7351364,2.9998 11.2172201,3.50734098 11.2172201,4.13094754 L11.2172201,4.13094754 L11.2172201,8.06537377 C11.2172201,8.68898033 10.7351364,9.19652131 10.143444,9.19652131 L10.143444,9.19652131 L4.5737761,9.19652131 C3.98208376,9.19652131 3.5,8.68898033 3.5,8.06537377 L3.5,8.06537377 L3.5,4.13094754 C3.5,3.50734098 3.98208376,2.9998 4.5737761,2.9998 L4.5737761,2.9998 Z M9.53332192,4.7702918 L5.18292822,4.7702918 L5.18292822,7.42602951 L9.53332192,7.42602951 L9.53332192,4.7702918 Z" id="Combined-Shape"></path>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<svg width="25px" height="25px" viewBox="0 0 25 25" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>6A33B04F-7DCB-4252-B9FA-1264ADAF52AD</title>
<defs>
<rect id="path-1" x="128" y="100" width="1202" height="20" rx="8"></rect>
<filter x="-1.6%" y="-85.0%" width="103.2%" height="290.0%" filterUnits="objectBoundingBox" id="filter-2">
<feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feGaussianBlur stdDeviation="6" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
</filter>
</defs>
<g id="*transactions" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Transactions-(status-wording)" transform="translate(-1131.000000, -118.000000)">
<rect id="bg" fill="#F0F3F5" x="0" y="0" width="1366" height="1178"></rect>
<g id="Rectangle-5">
<use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use>
<use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-1"></use>
</g>
<rect id="Rectangle-5" fill="#FFFFFF" x="128" y="108" width="1202" height="1039" rx="8"></rect>
<g id="tabs" transform="translate(127.000000, 100.000000)">
<path d="M8,0 L1194.99917,0 C1199.41745,-1.26386638e-13 1202.99917,3.581722 1202.99917,8 L1202.99917,62 L1202.99917,62 L0,62 L0,8 C-5.41083001e-16,3.581722 3.581722,8.11624501e-16 8,0 Z" id="Rectangle-5" fill="#F0F3F5"></path>
<g id="tab/default-2" transform="translate(972.807980, 0.000000)">
<path d="M4,1.36424205e-12 L227.19202,1.36424205e-12 C229.401159,1.37953312e-12 231.19202,1.790861 231.19202,4 L231.19202,62 L231.19202,62 L0,62 L0,4 C-2.705415e-16,1.790861 1.790861,1.36464786e-12 4,1.36424205e-12 Z" id="Rectangle-7-Copy-2" opacity="0"></path>
<g id="Group" transform="translate(32.096010, 18.000000)">
<g id="icon-/-transactions" transform="translate(0.000000, 1.000000)">
<rect id="Rectangle" x="0" y="0" width="24" height="24"></rect>
<g id="icon/dashboard-copy" transform="translate(3.000000, 5.000000)" fill="#6B7384" fill-rule="nonzero">
<path d="M17,12 C17.5522847,12 18,12.4477153 18,13 C18,13.5128358 17.6139598,13.9355072 17.1166211,13.9932723 L17,14 L5,14 C4.44771525,14 4,13.5522847 4,13 C4,12.4871642 4.38604019,12.0644928 4.88337887,12.0067277 L5,12 L17,12 Z M1,12 C1.55228475,12 2,12.4477153 2,13 C2,13.5522847 1.55228475,14 1,14 C0.44771525,14 0,13.5522847 0,13 C0,12.4477153 0.44771525,12 1,12 Z M17,6 C17.5522847,6 18,6.44771525 18,7 C18,7.51283584 17.6139598,7.93550716 17.1166211,7.99327227 L17,8 L5,8 C4.44771525,8 4,7.55228475 4,7 C4,6.48716416 4.38604019,6.06449284 4.88337887,6.00672773 L5,6 L17,6 Z M1,6 C1.55228475,6 2,6.44771525 2,7 C2,7.55228475 1.55228475,8 1,8 C0.44771525,8 0,7.55228475 0,7 C0,6.44771525 0.44771525,6 1,6 Z M17,0 C17.5522847,0 18,0.44771525 18,1 C18,1.51283584 17.6139598,1.93550716 17.1166211,1.99327227 L17,2 L5,2 C4.44771525,2 4,1.55228475 4,1 C4,0.487164161 4.38604019,0.0644928393 4.88337887,0.00672773133 L5,0 L17,0 Z M1,0 C1.55228475,0 2,0.44771525 2,1 C2,1.55228475 1.55228475,2 1,2 C0.44771525,2 0,1.55228475 0,1 C0,0.44771525 0.44771525,0 1,0 Z" id="Combined-Shape"></path>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>
\ No newline at end of file
import transactionsIcon from '../../assets/images/wallet-nav/tab-transactions.inline.svg';
import sendIcon from '../../assets/images/wallet-nav/tab-send.inline.svg';
import receiveIcon from '../../assets/images/wallet-nav/tab-receive.inline.svg';
import dashboardIcon from '../../assets/images/wallet-nav/tab-dashboard.inline.svg';
import delegationListIcon from '../../assets/images/wallet-nav/tab-delegation_list.inline.svg';
const messages = defineMessages({
transactions: {
export const STAKE_DASHBOARD: TopbarCategory = registerCategory({
className: 'stakeDashboard',
route: ROUTES.WALLETS.DELEGATION_DASHBOARD,
icon: undefined,
icon: dashboardIcon,
label: messages.delegationDashboard,
isVisible: request => (
asGetStakingKey(request.selected) != null
export const SEIZA_STAKE_SIMULATOR: TopbarCategory = registerCategory({
className: 'stakeSimulator',
route: ROUTES.WALLETS.ADAPOOL_DELEGATION_SIMPLE,
icon: undefined,
icon: delegationListIcon,
label: messages.delegationList,
isVisible: request => (
asGetStakingKey(request.selected) != null &&
2409: Upgrade to cabal-3.4.0.0 for documentation r=newhoggy a=newhoggy Co-authored-by: John Ky <[email protected]>
- Model a lower-level "weakly-typed" metadata, which is essentially just a JSON object. - Model a level above this layer that translates from the "weakly-typed" metadata into a "strongly-typed" metadata. - Use the "weakly-typed" metadata type in all lower-level areas: - The database/storage layer - The server layer - The webhook layer - All these layers don't care much about what form the metadata is in, and so the weak type is more appropriate here. - Use the "strongly-typed" metadata type in the PR validator. - This is the only area where we want the stronger types. - Shuffle tests around accordingly, write new tests. - Cleanup the codebase a bit.
2409: Upgrade to cabal-3.4.0.0 for documentation r=newhoggy a=newhoggy Co-authored-by: John Ky <[email protected]iohk.io>