Skip to content

Commit f664a36

Browse files
maxmagic-devmaxmagic-devOverzunov
authored
Feat/major nextjs update (#1008)
* feat(dev): migrate app to Nextjs12 Co-authored-by: maxmagic-dev <Maksym.Vasylenko@magicpowered.io> Co-authored-by: Overzunov <overzunov@lohika.com>
1 parent 47d524c commit f664a36

File tree

81 files changed

+2211
-1487
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+2211
-1487
lines changed

.babelrc

-3
This file was deleted.

astro_2.0/components/Accordion/tests/__snapshots__/Accordion.spec.tsx.snap

+7-4
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
exports[`Accordion Should render component 1`] = `
44
<div>
55
<div
6-
class=""
6+
class="root"
77
>
88
<div
9+
class="header"
910
data-testid="accordion-header"
1011
role="button"
1112
tabindex="0"
1213
>
1314
Hello
1415
<button
15-
class=""
16+
class="iconButton medium icon"
1617
type="button"
1718
>
1819
<svg>
@@ -23,11 +24,13 @@ exports[`Accordion Should render component 1`] = `
2324
</button>
2425
</div>
2526
<div
26-
class=""
27+
class="contentContainer"
2728
data-testid="accordion-container"
2829
style="height: 0px;"
2930
>
30-
<div>
31+
<div
32+
class="content"
33+
>
3134
World
3235
</div>
3336
</div>

astro_2.0/components/AppFooter/tests/__snapshots__/AppFooter.spec.tsx.snap

+43-12
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,26 @@
33
exports[`App Footer Should render AppFooter component 1`] = `
44
<div>
55
<div
6-
class=""
6+
class="root"
77
role="button"
88
tabindex="0"
99
>
10-
<div>
11-
<div>
12-
<div>
10+
<div
11+
class="side"
12+
>
13+
<div
14+
class="wrapper"
15+
>
16+
<div
17+
class="social"
18+
>
1319
<a
1420
href="https://twitter.com/AstroDao"
1521
rel="noopener noreferrer"
1622
target="_blank"
1723
>
1824
<svg
25+
class="icon"
1926
width="24"
2027
>
2128
<use
@@ -29,6 +36,7 @@ exports[`App Footer Should render AppFooter component 1`] = `
2936
target="_blank"
3037
>
3138
<svg
39+
class="icon"
3240
width="24"
3341
>
3442
<use
@@ -42,6 +50,7 @@ exports[`App Footer Should render AppFooter component 1`] = `
4250
target="_blank"
4351
>
4452
<svg
53+
class="icon"
4554
width="24"
4655
>
4756
<use
@@ -51,72 +60,94 @@ exports[`App Footer Should render AppFooter component 1`] = `
5160
</a>
5261
</div>
5362
<a
63+
class="devLink"
5464
href="https://github.com/near-daos/astro-ui/discussions"
5565
rel="noreferrer noopener"
5666
target="_blank"
5767
>
5868
components.appFooter.askQuestion
5969
</a>
60-
<div>
70+
<div
71+
class="version"
72+
>
6173
<a
74+
class="devLink"
6275
href="https://github.com/near-daos/astro-ui/issues"
6376
rel="noreferrer noopener"
6477
target="_blank"
6578
>
6679
reportAnIssue
6780
</a>
6881
</div>
69-
<div>
82+
<div
83+
class="repo"
84+
>
7085
<a
86+
class="devLink"
7187
href="https://github.com/near-daos/astro-ui"
7288
rel="noreferrer noopener"
7389
target="_blank"
7490
>
7591
components.appFooter.githubRepo
7692
</a>
7793
<a
94+
class="devLink"
7895
href="https://testnet.app.astrodao.com/"
7996
rel="noreferrer noopener"
8097
target="_blank"
8198
>
8299
Testnet env
83100
</a>
84101
<a
102+
class="devLink"
85103
href="https://api.app.astrodao.com/docs/#/"
86104
rel="noreferrer noopener"
87105
target="_blank"
88106
>
89107
Swagger API
90108
</a>
91109
</div>
92-
<div>
110+
<div
111+
class="copyright"
112+
>
93113
components.appFooter.opensourceAsIs
94114
<br />
95115
components.appFooter.communityDeveloped
96116
</div>
97-
<div>
117+
<div
118+
class="terms"
119+
>
98120
<a
121+
class="devLink"
99122
href="/terms-conditions"
100123
>
101124
termsAndConditions
102125
</a>
103126
</div>
104-
<div>
127+
<div
128+
class="release"
129+
>
105130
<a
131+
class="devLink"
106132
href=""
107133
rel="noreferrer noopener"
108134
target="_blank"
109135
>
110136
releaseNotes
111137
</a>
112138
</div>
113-
<div>
114-
<div>
139+
<div
140+
class="locale"
141+
>
142+
<div
143+
class="root"
144+
>
115145
<div>
116146
<div
117-
class=""
147+
class="selector"
118148
>
119149
<img
150+
class="flag"
120151
data-testid="circle-country-flag"
121152
height="100"
122153
src="https://hatscripts.github.io/circle-flags/flags/us.svg"

astro_2.0/components/AppHeader/components/AccountButton/components/AccountPopupItem/tests/__snapshots__/AccountPopupItem.spec.tsx.snap

+7-3
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,22 @@
33
exports[`account popup item Should render component 1`] = `
44
<div>
55
<div
6-
class=""
6+
class="root"
77
role="button"
88
tabindex="0"
99
>
10-
<div>
10+
<div
11+
class="icon"
12+
>
1113
<svg>
1214
<use
1315
href="/_next/undefined"
1416
/>
1517
</svg>
1618
</div>
17-
<div>
19+
<div
20+
class="content"
21+
>
1822
test
1923
</div>
2024
</div>

astro_2.0/components/AppHeader/components/NotificationsBell/tests/__snapshots__/NotificationsBell.spec.tsx.snap

+8-3
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,26 @@
33
exports[`notifications bell Should render component if feature flag is true and account id available 1`] = `
44
<div>
55
<div
6-
class=""
6+
class="root"
77
href="/notifications"
88
>
99
<svg
10+
class="bell"
1011
data-testid="notifications-icon"
1112
>
1213
<use
1314
href="/_next/undefined"
1415
/>
1516
</svg>
16-
<div>
17+
<div
18+
class="notificationsCount"
19+
>
1720
5
1821
</div>
1922
</div>
20-
<div />
23+
<div
24+
class="root"
25+
/>
2126
</div>
2227
`;
2328

astro_2.0/components/AppHeader/components/SearchBar/components/DropdownResults/components/ResultSection/components/SearchResultDaoCard/tests/__snapshots__/SearchResultDaoCard.spec.tsx.snap

+12-5
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
exports[`search result dao card Should render component 1`] = `
44
<div>
55
<div
6+
class="root"
67
role="button"
78
tabindex="0"
89
>
9-
<div>
10+
<div
11+
class="flagHolder"
12+
>
1013
<div
11-
class="undefined"
14+
class="root xs defaultBackground"
1215
>
1316
<svg
1417
class="svg"
@@ -38,18 +41,22 @@ exports[`search result dao card Should render component 1`] = `
3841
</clippath>
3942
</svg>
4043
<div
41-
class=""
44+
class="backgroundXS"
4245
/>
4346
<canvas
4447
style="clip-path: path('M46.4118 0L9.74793 13.103V20.3722L0 23.856V52.5981L36.6639 39.4951V32.2259L46.4118 28.7421V0Z'); max-width: 47px; transform: none;"
4548
/>
4649
</div>
4750
</div>
4851
<div>
49-
<div>
52+
<div
53+
class="header"
54+
>
5055
dao id
5156
</div>
52-
<div>
57+
<div
58+
class="sub"
59+
>
5360
dao id
5461
</div>
5562
</div>

astro_2.0/components/AppHeader/components/SearchBar/components/DropdownResults/tests/__snapshots__/DropdownResults.spec.tsx.snap

+9-4
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,23 @@
33
exports[`search results dropdown Should render component 1`] = `
44
<div>
55
<div
6+
class="root"
67
style="width: 100px;"
78
>
89
<div
9-
class=""
10+
class="root root"
1011
>
1112
<div
12-
class=""
13+
class="image image"
1314
/>
14-
<div>
15+
<div
16+
class="title"
17+
>
1518
No results for asd
1619
</div>
17-
<div>
20+
<div
21+
class="desc"
22+
>
1823
We couldn't find anything matching your search. Try again with a different term.
1924
</div>
2025
</div>

0 commit comments

Comments
 (0)