Skip to content

Commit

Permalink
show skeet install script
Browse files Browse the repository at this point in the history
  • Loading branch information
KishiTheMechanic committed Feb 24, 2024
1 parent f80cae2 commit 3a77e37
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/pages/common/SkeetRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ import { BookOpenIcon } from '@heroicons/react/24/outline'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faGithub } from '@fortawesome/free-brands-svg-icons'

const installScript = `sh -c "$(curl -sSfL https://storage.googleapis.com/skeet-assets/resources/install-v1.5.0)"`

export default function SkeetRow() {
const { t, i18n } = useTranslation()
const isJapanese = useMemo(() => i18n.language === 'ja', [i18n.language])
const [copyText, setCopyText] = useState('common:copy')

const handleClick = useCallback(() => {
copyToClipboard('npm i -g @skeet-framework/cli')
copyToClipboard(installScript)
setCopyText('common:copied')

setTimeout(() => {
Expand Down Expand Up @@ -117,8 +119,8 @@ export default function SkeetRow() {
{t(copyText)}
</button>
</div>
<div className="pt-4 text-left font-mono">
$ npm i -g @skeet-framework/cli
<div className="overflow-x-scroll whitespace-nowrap pt-4 text-left font-mono leading-relaxed scrollbar-hide">
<p className="font-mono">$ {installScript}</p>
</div>
</div>
<div className="mb-40 mt-24 lg:mt-36">
Expand Down

0 comments on commit 3a77e37

Please sign in to comment.