Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: Rename Preferences to Settings#1487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
BrunoQuaresma merged 3 commits intomainfrombq/chore-update-preferences-to-settings
May 16, 2022
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
Revert dropdown change
  • Loading branch information
@BrunoQuaresma
BrunoQuaresma committedMay 16, 2022
commit3ef67f11a5f1a89dbdf27777370a7b58c7851275
4 changes: 2 additions & 2 deletionssite/src/components/UserDropdown/UserDropdown.test.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -26,7 +26,7 @@ describe("UserDropdown", () => {
describe("when the trigger is clicked", () => {
it("opens the menu", async () => {
await renderAndClick()
expect(screen.getByText(Language.settingsLabel)).toBeDefined()
expect(screen.getByText(Language.accountLabel)).toBeDefined()
expect(screen.getByText(Language.docsLabel)).toBeDefined()
expect(screen.getByText(Language.signOutLabel)).toBeDefined()
})
Expand DownExpand Up@@ -58,7 +58,7 @@ describe("UserDropdown", () => {
it("has the correct link for the account item", async () => {
await renderAndClick()

const link = screen.getByText(Language.settingsLabel).closest("a")
const link = screen.getByText(Language.accountLabel).closest("a")
if (!link) {
throw new Error("Anchor tag not found for the account menu item")
}
Expand Down
4 changes: 2 additions & 2 deletionssite/src/components/UserDropdown/UsersDropdown.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -16,7 +16,7 @@ import { UserAvatar } from "../UserAvatar/UserAvatar"
import { UserProfileCard } from "../UserProfileCard/UserProfileCard"

export const Language = {
settingsLabel: "Settings",
accountLabel: "Account",
docsLabel: "Documentation",
signOutLabel: "Sign Out",
}
Expand DownExpand Up@@ -73,7 +73,7 @@ export const UserDropdown: React.FC<UserDropdownProps> = ({ user, onSignOut }: U
<ListItemIcon className={styles.icon}>
<AccountIcon />
</ListItemIcon>
<ListItemText primary={Language.settingsLabel} />
<ListItemText primary={Language.accountLabel} />
</MenuItem>
</Link>

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp