Skip to content

Commit

Permalink
Merge branch 'feature/sc-27825/add-to-sheet2' into feature/sc-27826/s…
Browse files Browse the repository at this point in the history
…tyling
  • Loading branch information
stevekaplan123 committed Dec 15, 2024
2 parents 62350fd + 7466742 commit c802b75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions static/js/ReaderPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,7 @@ class ReaderPanel extends Component {
);
}
if (this.state.mode === "Sheet") {
console.log(this.props)
menu = <Sheet
adjustHighlightedAndVisible={this.adjustSheetHighlightedAndVisible}
panelPosition ={this.props.panelPosition}
Expand Down
2 changes: 1 addition & 1 deletion static/js/sheets/Sheet.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Sheet extends Component {

else if (Sefaria.isRef(path.slice(1))) {
e.preventDefault();
window.open(target.href);
Sefaria.util.openInNewTab(target.href);
}
}
}
Expand Down
7 changes: 4 additions & 3 deletions static/js/sheets/SheetContentSidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ const SheetContentSidebar = ({authorImage, authorStatement, authorUrl, toggleSig
name={authorStatement}
/>
{authorName}
{!loading && <SheetProfileInfo profile={profile}/>}
{!loading && <SheetProfileInfo profile={profile} toggleSignUpModal={toggleSignUpModal}/>}
{<PartOfCollections collections={collections}/>}
</div>;
}

const SheetProfileInfo = ({profile}) => {
const SheetProfileInfo = ({profile, toggleSignUpModal}) => {
const profileFollowers = <div className="profileFollowers">
<InterfaceText>{String(profile.followers.length)}</InterfaceText>&nbsp;
<InterfaceText>followers</InterfaceText>
Expand All @@ -38,7 +38,8 @@ const SheetProfileInfo = ({profile}) => {
{Sefaria._uid !== profile.id && <FollowButton
large={true}
uid={profile.id}
following={Sefaria.following.indexOf(profile.id) > -1}/>
following={Sefaria.following.indexOf(profile.id) > -1}
toggleSignUpModal={toggleSignUpModal}/>
}
</span>;
}
Expand Down

0 comments on commit c802b75

Please sign in to comment.