Skip to content

Commit

Permalink
Update MastodonDialog component with mastodonSrMsg prop
Browse files Browse the repository at this point in the history
  • Loading branch information
FoggyMtnDrifter committed Feb 13, 2024
1 parent 0ddf2da commit 9be57a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/shareButtons/MastodonDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ export interface MastodonDialogProps {
invalidUrlMsg: string;
urlMsg: string;
shareMsg: string;
mastodonSrMsg: string;
}

const MastodonDialog: React.FC<MastodonDialogProps> = ({
invalidUrlMsg,
urlMsg,
shareMsg,
mastodonSrMsg,
}) => {
const mastodonShareSchema = z.object({
instanceUrl: z
Expand All @@ -54,7 +56,7 @@ const MastodonDialog: React.FC<MastodonDialogProps> = ({
<>
<Popover>
<PopoverTrigger>
<span className="sr-only">X</span>
<span className="sr-only">{mastodonSrMsg}</span>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
Expand Down
1 change: 1 addition & 0 deletions components/shareButtons/ShareButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const ShareButtons = ({ slug }: ShareButtonsProps) => {
invalidUrlMsg={t("mastodon.url-valid")}
urlMsg={t("mastodon.url")}
shareMsg={t("shareName")}
mastodonSrMsg={t("mastodon.name")}
/>
<Link
href={facebookLink}
Expand Down

0 comments on commit 9be57a0

Please sign in to comment.