Skip to content

Commit 2f4bc9f

Browse files
committed
Blocked repositories page improvements
1 parent 22e9253 commit 2f4bc9f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

components/dashboard/src/admin/BlockedRepositories.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export function BlockedRepositoriesList(props: Props) {
135135
</div>
136136
<input
137137
type="search"
138-
placeholder="Search by URL Regex"
138+
placeholder="Search by URL RegEx"
139139
onKeyDown={(ke) => ke.key === "Enter" && search()}
140140
onChange={(v) => {
141141
setQueryTerm(v.target.value.trim());
@@ -148,8 +148,10 @@ export function BlockedRepositoriesList(props: Props) {
148148
</div>
149149
</div>
150150

151-
<Alert type={"info"} closable={false} showIcon={true} className="flex rounded p-2 w-2/3 mb-2 w-full">
152-
<span>Search entries by their Repositoriy URL regular expression (RegEx).</span>
151+
<Alert type={"info"} closable={false} showIcon={true} className="flex rounded p-2 mb-2 w-full">
152+
<span>
153+
Search entries by their repository URL <abbr title="regular expression">RegEx</abbr>.
154+
</span>
153155
</Alert>
154156
<div className="flex flex-col space-y-2">
155157
<div className="px-6 py-3 flex justify-between text-sm text-gray-400 border-t border-b border-gray-200 dark:border-gray-800 mb-2">
@@ -211,7 +213,7 @@ function AddBlockedRepositoryModal(p: AddBlockedRepositoryModalProps) {
211213
setError("");
212214
}, [p.blockedRepository]);
213215

214-
let save = (): boolean => {
216+
const save = (): boolean => {
215217
const v = ref.current;
216218
const newError = p.validate(v);
217219
if (!!newError) {

0 commit comments

Comments
 (0)