Skip to content
Snippets Groups Projects
Commit a84531c3 authored by dross001's avatar dross001
Browse files

videoslider theme

parent 0de85a34
No related branches found
No related tags found
No related merge requests found
......@@ -14,14 +14,14 @@ interface VideoListProps {
chapter?: Chapter;
}
function VideoList({ chapter }: VideoListProps) {
const themeContext = useThemeContext();
export default function VideoList({ chapter }: VideoListProps) {
const {theme} = useThemeContext();
return (
<div className={styles.container}>
<h3
className={`${
themeContext.theme === "light"
theme === "light"
? styles.lightModeText
: styles.darkModeText
}`}
......@@ -41,5 +41,3 @@ function VideoList({ chapter }: VideoListProps) {
</div>
);
}
export default VideoList;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment