-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "feat: Taxonomy delete dialog (#684)"
This reverts commit 1eff489.
- Loading branch information
1 parent
17499eb
commit 8493c3c
Showing
28 changed files
with
119 additions
and
634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,14 @@ | ||
import React, { useMemo, useState } from 'react'; | ||
import { StudioFooter } from '@edx/frontend-component-footer'; | ||
import { Outlet } from 'react-router-dom'; | ||
import { Toast } from '@edx/paragon'; | ||
|
||
import Header from '../header'; | ||
import { TaxonomyContext } from './common/context'; | ||
|
||
const TaxonomyLayout = () => { | ||
// Use `setToastMessage` to show the toast. | ||
const [toastMessage, setToastMessage] = useState(null); | ||
|
||
const context = useMemo(() => ({ | ||
toastMessage, setToastMessage, | ||
}), []); | ||
|
||
return ( | ||
<TaxonomyContext.Provider value={context}> | ||
<div className="bg-light-400"> | ||
<Header isHiddenMainMenu /> | ||
<Outlet /> | ||
<StudioFooter /> | ||
<Toast | ||
show={toastMessage !== null} | ||
onClose={() => setToastMessage(null)} | ||
data-testid="taxonomy-toast" | ||
> | ||
{toastMessage} | ||
</Toast> | ||
</div> | ||
</TaxonomyContext.Provider> | ||
); | ||
}; | ||
const TaxonomyLayout = () => ( | ||
<div className="bg-light-400"> | ||
<Header isHiddenMainMenu /> | ||
<Outlet /> | ||
<StudioFooter /> | ||
</div> | ||
); | ||
|
||
export default TaxonomyLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.