Skip to content

Commit 6890476

Browse files
authored
chore(docs): add copy button to cli install instructions (#3107)
1 parent 7ce9dc9 commit 6890476

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

docs/src/components/CopyButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const CopyButton = ({
2929
<CopyToClipboard text={copyText} onCopy={copy}>
3030
<Button
3131
className={className}
32-
isLoading={copied}
32+
isDisabled={copied}
3333
size={size}
3434
variation={variation}
3535
>
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Tabs, TabItem } from '@aws-amplify/ui-react';
2+
import { TerminalCommand } from '@/components/InstallScripts';
23

34
The Authenticator works seamlessly with the [Amplify CLI](https://docs.amplify.aws/cli/start/install/)
45
to **automatically** work with your backend.
@@ -9,16 +10,12 @@ if you're using a version before `6.4.0`:
910
<Tabs>
1011
<TabItem title="npm">
1112

12-
```shell
13-
npm install -g @aws-amplify/cli@latest
14-
```
13+
<TerminalCommand command="npm install -g @aws-amplify/cli@latest" />
1514

1615
</TabItem>
1716
<TabItem title="yarn">
1817

19-
```shell
20-
yarn global add @aws-amplify/cli@latest
21-
```
18+
<TerminalCommand command="yarn global add @aws-amplify/cli@latest" />
2219

2320
</TabItem>
2421
</Tabs>

0 commit comments

Comments
 (0)