Skip to content

Commit

Permalink
Finish feature/13
Browse files Browse the repository at this point in the history
  • Loading branch information
dlcastillop authored Oct 30, 2024
2 parents 63a5967 + f36f2ea commit f627f8f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.vscode-test/**
.gitignore
vsc-extension-quickstart.md
.idea/
6 changes: 3 additions & 3 deletions snippets/js.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -1088,8 +1088,8 @@
"body": [
"import { useState } from 'react';",
"",
"export const useRandomColor = () => {",
" const [color, setColor] = useState('#000000');",
"export const useRandomColor = (initialColor) => {",
" const [color, setColor] = useState(initialColor ?? '#000000');",
"",
" const generateColor = () => {",
" const newColor =",
Expand Down Expand Up @@ -1436,7 +1436,7 @@
" }",
"",
" return { title, changeTitle };",
"};",
"};"
],
"description": "React hook to change the page title"
},
Expand Down
6 changes: 3 additions & 3 deletions snippets/ts.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -1177,8 +1177,8 @@
"body": [
"import { useState } from 'react';",
"",
"export const useRandomColor = () => {",
" const [color, setColor] = useState('#000000');",
"export const useRandomColor = (initialColor?: string) => {",
" const [color, setColor] = useState(initialColor ?? '#000000');",
"",
" const generateColor = () => {",
" const newColor =",
Expand Down Expand Up @@ -1562,7 +1562,7 @@
" }",
"",
" return { title, changeTitle };",
"};",
"};"
],
"description": "React hook to change the page title"
},
Expand Down

0 comments on commit f627f8f

Please sign in to comment.