Add formatter script
This commit is contained in:
@@ -52,7 +52,8 @@
|
|||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
"eject": "react-scripts eject",
|
"eject": "react-scripts eject",
|
||||||
"predeploy": "npm run build",
|
"predeploy": "npm run build",
|
||||||
"deploy": "gh-pages -d build"
|
"deploy": "gh-pages -d build",
|
||||||
|
"format": "prettier --write \"./src/**/*.{js,jsx,ts,tsx,json,vue}\""
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": "react-app"
|
"extends": "react-app"
|
||||||
|
|||||||
@@ -69,7 +69,6 @@ const StyleInput: React.FC<StyleInputProps> = () => {
|
|||||||
className={`react-dropdown-select-item ${
|
className={`react-dropdown-select-item ${
|
||||||
itemIndex === cursor ? "react-dropdown-select-item-active" : ""
|
itemIndex === cursor ? "react-dropdown-select-item-active" : ""
|
||||||
}`}
|
}`}
|
||||||
tabIndex={-1}
|
|
||||||
onClick={() => methods.addItem(item)}
|
onClick={() => methods.addItem(item)}
|
||||||
>
|
>
|
||||||
{item.icon}
|
{item.icon}
|
||||||
|
|||||||
Reference in New Issue
Block a user