Skip to content

Commit

Permalink
Merge pull request #9 from nwplus/dev
Browse files Browse the repository at this point in the history
rebranded home page
  • Loading branch information
DonaldKLee authored Jul 22, 2024
2 parents f8cd52c + 9e5d63e commit 7cd9e3f
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ async function publishHomeView(user_id, client) {
// Create text to display blocked users
const blockedUsersText =
blockedUserNames.length > 0
? `You have blocked: ${blockedUserNames.join(", ")}`
: "You have not blocked any users.";
? `Don't pair me with: ${blockedUserNames.join(", ")}`
: "You have not selected any users for \"don't pair me with\".";

// Determine button text based on optInStatus
const buttonText = optInStatus
Expand Down Expand Up @@ -170,6 +170,17 @@ async function publishHomeView(user_id, client) {
},
],
},
{
"type": "divider"
},
{
type: "header",
text: {
type: "plain_text",
text: ":x: Don't Pair Me With",
emoji: true,
},
},
{
type: "section",
text: {
Expand Down Expand Up @@ -225,7 +236,7 @@ async function publishHomeView(user_id, client) {
type: "button",
text: {
type: "plain_text",
text: "Save",
text: "Save don't pair me with",
emoji: true,
},
action_id: "save_preferences",
Expand All @@ -234,7 +245,7 @@ async function publishHomeView(user_id, client) {
type: "button",
text: {
type: "plain_text",
text: "Reset",
text: "Reset don't pair me with",
emoji: true,
},
action_id: "reset_preferences",
Expand Down

0 comments on commit 7cd9e3f

Please sign in to comment.