diff --git a/src/components/commands/index.js b/src/components/commands/index.js index 056b9f92af..2813ff32df 100644 --- a/src/components/commands/index.js +++ b/src/components/commands/index.js @@ -1,16 +1,16 @@ -import React, { useState } from "react" -import { StaticQuery, graphql, Link } from "gatsby" +import React, { useState } from 'react'; +import { StaticQuery, graphql, Link } from 'gatsby'; -import { InputText, Icon } from "@pantheon-systems/pds-toolkit-react" +import { InputText, Icon } from '@pantheon-systems/pds-toolkit-react'; -import "./style.css" +import './style.css'; const Commands = ({ data }) => { - const [search, setSearch] = useState("") - const slugRegExp = /:/g + const [search, setSearch] = useState(''); + const slugRegExp = /:/g; return (
-
+
{ value={search} />
- {search != "" && ( + {search != '' && (
- ) -} + ); +}; export default (props) => ( ( `} render={(data) => } /> -) +);