Skip to content

Commit

Permalink
init FontsUnit popup block
Browse files Browse the repository at this point in the history
  • Loading branch information
bozzhik committed Feb 2, 2025
1 parent 64f6b7f commit 3387b36
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-keys-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'snable': patch
---

init `FontsUnit` popup block
5 changes: 5 additions & 0 deletions src/components/modules/popup/FontsUnit.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Unit from '~/UI/Unit'

export default function FontsUnit() {
return <Unit token="fonts">шрифты</Unit>
}
4 changes: 2 additions & 2 deletions src/modules/popup/Popup.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Layout from '~/Global/Layout'
import Unit from '~/UI/Unit'
import FontsUnit from '~~popup/FontsUnit'

export function Popup() {
return (
<Layout>
<Unit token="fonts">шрифты</Unit>
<FontsUnit />
</Layout>
)
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"paths": {
"@/*": ["./src/*"],
"~/*": ["./src/components/*"],
"~~popup/*": ["./src/components/modules/popup/*"],
"$/*": ["./src/assets/*"]
}
},
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default defineConfig(({mode}) => {
alias: {
'@': resolve(__dirname, './src'),
'~': resolve(__dirname, './src/components'),
'~~popup': resolve(__dirname, './src/components/modules/popup'),
$: resolve(__dirname, './src/assets/'),
},
},
Expand Down

0 comments on commit 3387b36

Please sign in to comment.