Skip to content

Commit

Permalink
feat: iconography
Browse files Browse the repository at this point in the history
  • Loading branch information
Cygnusfear committed Dec 2, 2023
1 parent 833cefa commit f09b32c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gitadd-checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ function renderItem<Value>({
}

const checkbox = item.checked
? ` ${kleur.green("✅")} `
: ` ${kleur.grey(figures.checkboxOff)} `;
? ` ${kleur.green("✅")}`
: ` ${kleur.grey(figures.checkboxOff)}`;
const color = isActive ? kleur.cyan : (x: string) => x;
const prefix = isActive ? figures.pointer : " ";
return color(`${prefix}${checkbox} ${line}`);
return color(`${prefix}${checkbox} ${line}`);
}

export default createPrompt(
Expand Down
1 change: 1 addition & 0 deletions gitadd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ async function toggleFiles(files: FileStatus[]): Promise<FileStatus[]> {

const response = await checkbox({
message: "Select for staging:",
prefix: "➕💝 ",
choices,
loop: false,
pageSize: 20,
Expand Down

0 comments on commit f09b32c

Please sign in to comment.