|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`Default render 1`] = ` |
| 4 | +<div> |
| 5 | + <TopNav |
| 6 | + loggedIn={true} |
| 7 | + logo={ |
| 8 | + <Logo |
| 9 | + height="20" |
| 10 | + viewBox="0 0 54 20" |
| 11 | + width="54" |
| 12 | + xmlns="http://www.w3.org/2000/svg" |
| 13 | + /> |
| 14 | + } |
| 15 | + menu={ |
| 16 | + Array [ |
| 17 | + Object { |
| 18 | + "href": "https://www.topcoder-dev.com", |
| 19 | + "id": "business", |
| 20 | + "title": "BUSINESS", |
| 21 | + }, |
| 22 | + Object { |
| 23 | + "id": "community", |
| 24 | + "secondaryMenuForGuest": Array [ |
| 25 | + Object { |
| 26 | + "href": "https://www.topcoder-dev.com/about", |
| 27 | + "title": "Overview", |
| 28 | + }, |
| 29 | + Object { |
| 30 | + "href": "https://www.topcoder-dev.com/how-it-works/faqs/", |
| 31 | + "title": "How It Works", |
| 32 | + }, |
| 33 | + Object { |
| 34 | + "href": "/community/learn", |
| 35 | + "title": "Tracks", |
| 36 | + }, |
| 37 | + Object { |
| 38 | + "href": "https://www.topcoder-dev.com/about/why-crowdsourcing/", |
| 39 | + "title": "Why Join", |
| 40 | + }, |
| 41 | + ], |
| 42 | + "secondaryMenuForLoggedInUser": Array [ |
| 43 | + Object { |
| 44 | + "href": "/my-dashboard", |
| 45 | + "title": "Dashboard", |
| 46 | + }, |
| 47 | + Object { |
| 48 | + "href": "/members/willFilledByUserName", |
| 49 | + "id": "myprofile", |
| 50 | + "title": "My Profile", |
| 51 | + }, |
| 52 | + Object { |
| 53 | + "href": "https://community.topcoder-dev.com/PactsMemberServlet?module=PaymentHistory&full_list=false", |
| 54 | + "title": "Payments", |
| 55 | + }, |
| 56 | + ], |
| 57 | + "subMenu": Array [ |
| 58 | + Object { |
| 59 | + "subMenu": Array [ |
| 60 | + Object { |
| 61 | + "href": "/challenges", |
| 62 | + "title": "All Challenges", |
| 63 | + }, |
| 64 | + Object { |
| 65 | + "href": "https://arena.topcoder-dev.com", |
| 66 | + "title": "Competitive Programming", |
| 67 | + }, |
| 68 | + ], |
| 69 | + "title": "Compete", |
| 70 | + }, |
| 71 | + Object { |
| 72 | + "subMenu": Array [ |
| 73 | + Object { |
| 74 | + "href": "/community/competitive-programming", |
| 75 | + "title": "Competitive Programming", |
| 76 | + }, |
| 77 | + Object { |
| 78 | + "href": "/community/data-science", |
| 79 | + "title": "Data Science", |
| 80 | + }, |
| 81 | + Object { |
| 82 | + "href": "/community/design", |
| 83 | + "title": "Design", |
| 84 | + }, |
| 85 | + Object { |
| 86 | + "href": "/community/development", |
| 87 | + "title": "Development", |
| 88 | + }, |
| 89 | + Object { |
| 90 | + "href": "/community/qa", |
| 91 | + "title": "QA", |
| 92 | + }, |
| 93 | + ], |
| 94 | + "title": "Tracks", |
| 95 | + }, |
| 96 | + Object { |
| 97 | + "subMenu": Array [ |
| 98 | + Object { |
| 99 | + "href": "https://www.topcoder-dev.com/tco", |
| 100 | + "title": "TCO", |
| 101 | + }, |
| 102 | + Object { |
| 103 | + "href": "/community/member-programs", |
| 104 | + "title": "Programs", |
| 105 | + }, |
| 106 | + Object { |
| 107 | + "href": "https://apps.topcoder-dev.com/forums", |
| 108 | + "title": "Forums", |
| 109 | + }, |
| 110 | + Object { |
| 111 | + "href": "/community/statistics", |
| 112 | + "title": "Statistics", |
| 113 | + }, |
| 114 | + Object { |
| 115 | + "href": "/community/events", |
| 116 | + "title": "Events", |
| 117 | + }, |
| 118 | + Object { |
| 119 | + "href": "https://www.topcoder-dev.com/blog", |
| 120 | + "title": "Blog", |
| 121 | + }, |
| 122 | + ], |
| 123 | + "title": "Explore", |
| 124 | + }, |
| 125 | + ], |
| 126 | + "title": "COMMUNITY", |
| 127 | + }, |
| 128 | + ] |
| 129 | + } |
| 130 | + onChangeLevel1Id={[Function]} |
| 131 | + openMore={true} |
| 132 | + profileHandle="huanner" |
| 133 | + rightMenu={ |
| 134 | + <LoginNav |
| 135 | + accountMenu={ |
| 136 | + Array [ |
| 137 | + Object { |
| 138 | + "href": "/settings/profile", |
| 139 | + "title": "Settings", |
| 140 | + }, |
| 141 | + Object { |
| 142 | + "separator": true, |
| 143 | + }, |
| 144 | + Object { |
| 145 | + "href": "https://help.topcoder-dev.com/", |
| 146 | + "title": "Help", |
| 147 | + }, |
| 148 | + Object { |
| 149 | + "href": "https://www.topcoder.com/about/", |
| 150 | + "title": "About Topcoder", |
| 151 | + }, |
| 152 | + Object { |
| 153 | + "href": "https://www.topcoder-dev.com/logout", |
| 154 | + "title": "Log Out", |
| 155 | + }, |
| 156 | + ] |
| 157 | + } |
| 158 | + authURLs={ |
| 159 | + Object { |
| 160 | + "href": "https://accounts.topcoder-dev.com/member/registration?utm_source=community-app-main", |
| 161 | + "location": "https://accounts.topcoder-dev.com/member?retUrl=%S&utm_source=community-app-main", |
| 162 | + } |
| 163 | + } |
| 164 | + loggedIn={true} |
| 165 | + notificationButtonState="none" |
| 166 | + notifications={Array []} |
| 167 | + onMenuOpen={[Function]} |
| 168 | + onSwitch={[Function]} |
| 169 | + profile={ |
| 170 | + Object { |
| 171 | + "description": "devxxxxxx", |
| 172 | + |
| 173 | + "handle": "huanner", |
| 174 | + "photoURL": "https://d1aahxkjiobka8.cloudfront.net/avatar/https%3A%2F%2Ftopcoder-dev-media.s3.amazonaws.com%2Fmember%2Fprofile%2Fhuanner-1552562543506.png?size=32", |
| 175 | + } |
| 176 | + } |
| 177 | + showNotification={false} |
| 178 | + switchText={ |
| 179 | + Object { |
| 180 | + "href": "https://connect.topcoder-dev.com", |
| 181 | + "title": "Switch to BUSINESS", |
| 182 | + } |
| 183 | + } |
| 184 | + /> |
| 185 | + } |
| 186 | + setOpenMore={[Function]} |
| 187 | + theme="light" |
| 188 | + /> |
| 189 | +</div> |
| 190 | +`; |
0 commit comments