Skip to content

Commit 6db0f39

Browse files
author
Laurie T. Malau
committed
remove whitespaces
1 parent 6e18a44 commit 6db0f39

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

components/dashboard/src/admin/ProjectsSearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function ProjectsSearch() {
9797
<path fillRule="evenodd" clipRule="evenodd" d="M6 2a4 4 0 100 8 4 4 0 000-8zM0 6a6 6 0 1110.89 3.477l4.817 4.816a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 010 6z" fill="#A8A29E" />
9898
</svg>
9999
</div>
100-
<input type="search" placeholder="Search Projects" onKeyDown={(k) => k.key === 'Enter' && search()} onChange={(v) => { setSearchTerm(v.target.value) }} />
100+
<input type="search" placeholder="Search Projects" onKeyDown={(k) => k.key === 'Enter' && search()} onChange={(v) => { setSearchTerm((v.target.value).trim()) }} />
101101
</div>
102102
<button disabled={searching} onClick={search}>Search</button>
103103
</div>

components/dashboard/src/admin/TeamsSearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function TeamsSearch() {
8181
<path fillRule="evenodd" clipRule="evenodd" d="M6 2a4 4 0 100 8 4 4 0 000-8zM0 6a6 6 0 1110.89 3.477l4.817 4.816a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 010 6z" fill="#A8A29E" />
8282
</svg>
8383
</div>
84-
<input type="search" placeholder="Search Teams" onKeyDown={(k) => k.key === 'Enter' && search()} onChange={(v) => { setSearchTerm(v.target.value) }} />
84+
<input type="search" placeholder="Search Teams" onKeyDown={(k) => k.key === 'Enter' && search()} onChange={(v) => { setSearchTerm((v.target.value).trim()) }} />
8585
</div>
8686
<button disabled={searching} onClick={search}>Search</button>
8787
</div>

components/dashboard/src/admin/UserSearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default function UserSearch() {
7272
<path fillRule="evenodd" clipRule="evenodd" d="M6 2a4 4 0 100 8 4 4 0 000-8zM0 6a6 6 0 1110.89 3.477l4.817 4.816a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 010 6z" fill="#A8A29E" />
7373
</svg>
7474
</div>
75-
<input type="search" placeholder="Search Users" onKeyDown={(ke) => ke.key === 'Enter' && search() } onChange={(v) => { setSearchTerm(v.target.value) }} />
75+
<input type="search" placeholder="Search Users" onKeyDown={(ke) => ke.key === 'Enter' && search() } onChange={(v) => { setSearchTerm((v.target.value).trim()) }} />
7676
</div>
7777
<button disabled={searching} onClick={search}>Search</button>
7878
</div>

components/dashboard/src/admin/WorkspacesSearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function WorkspaceSearch(props: Props) {
9898
<path fillRule="evenodd" clipRule="evenodd" d="M6 2a4 4 0 100 8 4 4 0 000-8zM0 6a6 6 0 1110.89 3.477l4.817 4.816a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 010 6z" fill="#A8A29E" />
9999
</svg>
100100
</div>
101-
<input type="search" placeholder="Search Workspace IDs" onKeyDown={(ke) => ke.key === 'Enter' && search() } onChange={(v) => { setQueryTerm(v.target.value) }} />
101+
<input type="search" placeholder="Search Workspace IDs" onKeyDown={(ke) => ke.key === 'Enter' && search() } onChange={(v) => { setQueryTerm((v.target.value).trim()) }} />
102102
</div>
103103
<button disabled={searching} onClick={search}>Search</button>
104104
</div>

0 commit comments

Comments
 (0)