From 099ddd6805b1f8c54fcb8c8277b6266f4ba48f49 Mon Sep 17 00:00:00 2001 From: lemmy mwaura Date: Mon, 12 Dec 2022 01:07:29 +0300 Subject: [PATCH] fix:quotes - prettier --- frontend/pages/dashboard/[id].js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/frontend/pages/dashboard/[id].js b/frontend/pages/dashboard/[id].js index 4c40258c0..3d3a46c3d 100644 --- a/frontend/pages/dashboard/[id].js +++ b/frontend/pages/dashboard/[id].js @@ -45,7 +45,7 @@ import getWorkspaces from '../api/workspace/getWorkspaces'; /** * This component represent a single row for an environemnt variable on the dashboard * @param {object} obj - * @param {String[]} obj.keyPair - data related to the environment variable (id, key, value, public/private) + * @param {String[]} obj.keyPair - data related to the environment variable (id, pos, key, value, public/private) * @param {function} obj.deleteRow - a function to delete a certain keyPair * @param {function} obj.modifyKey - modify the key of a certain environment variable * @param {function} obj.modifyValue - modify the value of a certain environment variable @@ -114,7 +114,7 @@ const KeyPair = ({
modifyVisibility( - keyPair.type == "personal" ? "shared" : "personal", + keyPair.type == 'personal' ? 'shared' : 'personal', keyPair.pos ) } @@ -122,10 +122,10 @@ const KeyPair = ({ >
- {keyPair.type == "personal" ? "Make Shared" : "Make Personal"} + {keyPair.type == 'personal' ? 'Make Shared' : 'Make Personal'}
Math.floor(Math.random() * 16).toString(16)) - .join(""), + .join(''), keyPair.pos ); } @@ -147,7 +147,7 @@ const KeyPair = ({ >

Generate Random Hex

@@ -267,9 +267,9 @@ export default function Dashboard() { */ const reorderRows = () => { setSortMethod(prevSort => - prevSort == "alphabetical" - ? "-alphabetical" - : "alphabetical" + prevSort == 'alphabetical' + ? '-alphabetical' + : 'alphabetical' ); sortValuesHandler() @@ -324,9 +324,9 @@ export default function Dashboard() { setData([...data, { id:guidGenerator(), pos:data.length, - key:"", - value:"", - type:"shared" + key:'', + value:'', + type:'shared' }]); };