From 3cfbb34713eae36a57ae964abd7b985f6c8dc528 Mon Sep 17 00:00:00 2001 From: rektdeckard Date: Fri, 28 Aug 2020 13:37:12 -0400 Subject: [PATCH] Add formatter script --- package.json | 3 ++- src/components/StyleInput/StyleInput.tsx | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index eccfa3e..1d6dbfe 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,8 @@ "test": "react-scripts test", "eject": "react-scripts eject", "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": { "extends": "react-app" diff --git a/src/components/StyleInput/StyleInput.tsx b/src/components/StyleInput/StyleInput.tsx index 74e6f41..27f3b06 100644 --- a/src/components/StyleInput/StyleInput.tsx +++ b/src/components/StyleInput/StyleInput.tsx @@ -69,7 +69,6 @@ const StyleInput: React.FC = () => { className={`react-dropdown-select-item ${ itemIndex === cursor ? "react-dropdown-select-item-active" : "" }`} - tabIndex={-1} onClick={() => methods.addItem(item)} > {item.icon}