Skip to content

Commit 5a49ad8

Browse files
authored
UI/UX: Implement unified EmptyState component for stats page (#3195)
* add EmptyState component to toolkit and use it in the stats page * remove EmptySearchResult component * tweaks * refactor ComingSoon component * fix toolkit build * rollback changes in main preset
1 parent d6e3f73 commit 5a49ad8

File tree

57 files changed

+376
-256
lines changed

Some content is hidden

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

57 files changed

+376
-256
lines changed

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const RESTRICTED_MODULES = {
3939
'Table', 'TableRoot', 'TableBody', 'TableHeader', 'TableRow', 'TableCell',
4040
'Menu', 'MenuRoot', 'MenuTrigger', 'MenuContent', 'MenuItem', 'MenuTriggerItem', 'MenuRadioItemGroup', 'MenuContextTrigger',
4141
'Rating', 'RatingGroup', 'Textarea', 'Progress', 'ProgressCircle',
42+
'EmptyState',
4243
],
4344
message: 'Please use corresponding component or hook from "toolkit" instead',
4445
},

icons/empty_search_result.svg

Lines changed: 0 additions & 16 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"lint:tsc": "tsc -p ./tsconfig.json",
2525
"lint:envs-validator:test": "cd ./deploy/tools/envs-validator && ./test.sh",
2626
"prepare": "husky install",
27-
"svg:format": "svgo -r --config svgo.config.format.js ./icons",
27+
"svg:format": "svgo -r --config svgo.config.format.js ./icons ./toolkit/chakra/assets",
2828
"svg:build-sprite": "./deploy/scripts/build_sprite.sh",
2929
"test:pw": "./tools/scripts/pw.sh",
3030
"test:pw:local": "export NODE_PATH=$(pwd)/node_modules && yarn test:pw",

public/icons/name.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
| "dots"
5252
| "edit"
5353
| "email"
54-
| "empty_search_result"
5554
| "ENS"
5655
| "error-pages/403"
5756
| "error-pages/404"

public/static/coming-soon.svg

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)