Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
glassonion1 committed Mar 7, 2024
1 parent 8e45426 commit 6e8f398
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
- run: pnpm --ignore-workspace install
- run: pnpm install
- run: pnpm build
- name: Setup Pages
uses: actions/configure-pages@v2
Expand Down
3 changes: 0 additions & 3 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"url": "git+ssh://git@github.com:glassonion1/sakura-ui.git",
"directory": "packages/config"
},
"publishConfig": {
"access": "public"
},
"license": "MIT",
"type": "module",
"main": "dist/index.cjs.js",
Expand Down
5 changes: 1 addition & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sakura-ui/core",
"version": "0.1.30",
"version": "0.1.31",
"description": "",
"keywords": [],
"author": "glassonion1",
Expand All @@ -10,9 +10,6 @@
"url": "git+ssh://git@github.com:glassonion1/sakura-ui.git",
"directory": "packages/core"
},
"publishConfig": {
"access": "public"
},
"license": "MIT",
"type": "module",
"main": "dist/index.cjs.js",
Expand Down
15 changes: 1 addition & 14 deletions packages/core/src/components/Link.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useState, useEffect } from 'react'
import { cx } from '../libs/cx'
import { ComponentWithAs } from '../types/component'
import { forwardRef } from '../libs/forward-ref'
Expand Down Expand Up @@ -45,18 +44,6 @@ export const Link: ComponentWithAs<'a', LinkProps> = forwardRef(
antialiased
`

const [iconLabel, setIconLabel] = useState('')
useEffect(() => {
const language =
(window.navigator.languages && window.navigator.languages[0]) ||
window.navigator.language
if (/^ja\b/.test(language)) {
setIconLabel('新規タブで開きます')
return
}
setIconLabel('Opens in new tab')
}, [])

if (href?.startsWith('http')) {
return (
<Component
Expand All @@ -71,7 +58,7 @@ export const Link: ComponentWithAs<'a', LinkProps> = forwardRef(
<span className={cx(styleIcon)} aria-hidden="true">
open_in_new
</span>
<span className="sr-only">{iconLabel}</span>
<span className="sr-only">Opens in new tab</span>
</Component>
)
}
Expand Down
3 changes: 0 additions & 3 deletions packages/forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"url": "git+ssh://git@github.com:glassonion1/sakura-ui.git",
"directory": "packages/forms"
},
"publishConfig": {
"access": "public"
},
"license": "MIT",
"type": "module",
"main": "dist/index.cjs.js",
Expand Down

0 comments on commit 6e8f398

Please sign in to comment.