Skip to content

Commit 6ad33f2

Browse files
spaceokasperbirch1
authored andcommitted
Make fc snippet use filename
1 parent b26c2af commit 6ad33f2

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.vscode.example/dpl-design-system.code-snippets

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,21 @@
77
// Placeholders with the same ids are connected.
88
"Dpl-design-system functional component": {
99
"scope": "typescriptreact",
10-
"prefix": "fcdplreact",
10+
"prefix": "fcdpldesign",
1111
"body": [
12-
"import * as React from \"react\";",
1312
"import { FC } from \"react\";",
1413
"",
15-
"export interface ${1:component}Props {}",
14+
"export interface ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}}Props {}",
1615
"",
17-
"const ${1:component}: FC<${1:component}Props> = ({}) => {",
16+
"const ${1}: FC<${1}Props> = ({}) => {",
1817
"return (",
1918
"<>",
2019
"Hello",
2120
"</>",
2221
");",
2322
"};",
2423
"",
25-
"export default ${1:component};"
24+
"export default ${1};"
2625
],
2726
"description": "Creates a skeleton for a new functional component in dpl-design-system style"
2827
},

src/stories/Library/search-result-page/FacetLine.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const FacetLine: FC<FacetLineProps> = ({ items }) => {
3434
<li className="facet-line__item">
3535
<Dropdown
3636
ariaLabel="Choose periodical year"
37-
list={terms}
37+
list={[{ title }, ...terms]}
3838
arrowIcon="chevron"
3939
classNames="dropdown--grey-borders"
4040
/>

0 commit comments

Comments
 (0)