Skip to content

Commit

Permalink
fix(Remixer): change default mode and remove toggle (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanaturner committed Dec 30, 2023
2 parents 5738280 + 9c21242 commit dc76ddd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
5 changes: 0 additions & 5 deletions public/Binh Nguyen/ReactSidebar/src/components/Developers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ export default function Developers(props) {
coverpageURL={"https://chem.libretexts.org/Courses/Remixer_University/LibreTexts_Construction_Guide"}/>
</AccordionDetails>
</Accordion>

<IconLink title="New Book" icon="mt-icon-add" onClick={() => {
props.toggleDrawer(false)();
LibreTexts.bookCreator();
}}/>
<IconLink title="Get Text Cover" icon="mt-icon-book" onClick={() => {
try {
LibreTexts.cover(window.location.href);
Expand Down
15 changes: 3 additions & 12 deletions public/Henry Agnew/Remixer/src/components/Remixer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class Remixer extends React.Component {
constructor(props) {
super(props);
const defaultState = {
mode: 'Remix',
stage: 'Remixing',
mode: 'ReRemix',
stage: 'ReRemixing',
permission: RemixerFunctions.userPermissions(), //nonpermanent
user: document.getElementById('usernameHolder').innerText, //nonpermanent
href: window.location.href, //nonpermanent
Expand Down Expand Up @@ -191,23 +191,14 @@ class Remixer extends React.Component {
<Info/>
</Tooltip></div>
{this.state.permission !== 'Demonstration' ?
<>
<div style={{fontSize: '130%', cursor: 'pointer'}}
onClick={(e) => this.setState({swapDialog: this.state.mode === 'ReRemix' ? 'Remix' : 'ReRemix'})}
>
New Remix Mode
<Switch
checked={this.state.mode === 'ReRemix'} color="default"/>
Edit Remix Mode
</div>
<Tooltip title={'Loads an autosave from when you last closed the Remixer'}>
<div style={{flex: 1, display: 'flex', justifyContent: 'flex-end'}}>
<Button variant="contained" onClick={this.loadAutosave}
disabled={!localStorage.getItem('lastRemixerAutosave')}>
Load from previous session</Button>
</div>
</Tooltip>
</> : null}
: null}
</div>

{this.renderState()}
Expand Down

0 comments on commit dc76ddd

Please sign in to comment.