Skip to content

Commit

Permalink
Removed Notification component and utils for now because they are mor…
Browse files Browse the repository at this point in the history
…e app-specific. Switched from of tailwind util classes to custom classes to make the component styles easier adjustible. Removed unnecessary utils.
  • Loading branch information
kkomelin committed Jan 4, 2025
1 parent d34198d commit 5e13d23
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 305 deletions.
2 changes: 1 addition & 1 deletion packages/kit/src/components/Balance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Balance = () => {
}

return (
<Badge variant="surface" color="green" className="rounded-lg px-3 py-1.5">
<Badge variant="surface" color="green" className="sk-balance-badge">
{balance} SUI
</Badge>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/components/Faucet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Faucet = () => {
return (
<Button
variant="surface"
className="cursor-pointer rounded-lg px-3 py-1.5"
className="sk-faucet-button"
onClick={() => fund()}
>
<HandCoinsIcon />
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/components/NetworkType.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const NetworkType = () => {
// @todo Suggest Radix adding a better type for the color.
/* eslint-disable @typescript-eslint/no-explicit-any */
return (
<Badge color={color as any} className="rounded-lg px-3 py-1.5">
<Badge color={color as any} className="sk-network-badge">
{networkType || 'disconnected'}
</Badge>
)
Expand Down
44 changes: 0 additions & 44 deletions packages/kit/src/components/Notification.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions packages/kit/src/config/misc.ts

This file was deleted.

6 changes: 0 additions & 6 deletions packages/kit/src/config/networks.ts

This file was deleted.

120 changes: 0 additions & 120 deletions packages/kit/src/config/themes.ts

This file was deleted.

81 changes: 0 additions & 81 deletions packages/kit/src/helpers/notification.tsx

This file was deleted.

49 changes: 0 additions & 49 deletions packages/kit/src/hooks/useNetworkConfig.tsx

This file was deleted.

12 changes: 12 additions & 0 deletions packages/kit/src/styles/main.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
.sk-balance-badge {
@apply rounded-lg px-3 py-1.5;
}
.sk-faucet-button {
@apply cursor-pointer rounded-lg px-3 py-1.5;
}
.sk-network-badge {
@apply rounded-lg px-3 py-1.5;
}
}
3 changes: 3 additions & 0 deletions packages/kit/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ module.exports = {
plugins: [],
corePlugins: {
preflight: false,
},
experimental: {
optimizeUniversalDefaults: true,
}
}

0 comments on commit 5e13d23

Please sign in to comment.