update
This commit is contained in:
@@ -320,7 +320,6 @@ export function Reader({ topic }) {
|
|||||||
|
|
||||||
const resourceIdx = useStore((state) => state.resourceIdx);
|
const resourceIdx = useStore((state) => state.resourceIdx);
|
||||||
const selectResource = useStore((state) => state.selectResource);
|
const selectResource = useStore((state) => state.selectResource);
|
||||||
console.log(resourceIdx);
|
|
||||||
const selectedResource = topic.resources[resourceIdx];
|
const selectedResource = topic.resources[resourceIdx];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -374,13 +373,6 @@ export function Reader({ topic }) {
|
|||||||
<TitleIcon className="fill-gray-600" />
|
<TitleIcon className="fill-gray-600" />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
|
||||||
className={`cursor-pointer p-2 mr-1 rounded-full text-white border ${config.justifyText ? "bg-blue-100 border-blue-400" : "bg-gray-100 border-gray-400"}`}
|
|
||||||
onClick={() => changeConfig({ justifyText: !config.justifyText })}
|
|
||||||
>
|
|
||||||
<JustifyTextIcon className="fill-gray-600" />
|
|
||||||
</button>
|
|
||||||
|
|
||||||
{window.innerWidth > 576 && (
|
{window.innerWidth > 576 && (
|
||||||
<button
|
<button
|
||||||
className={`cursor-pointer p-2 mr-1 rounded-full text-white border ${config.narrowMode ? "bg-blue-100 border-blue-400" : "bg-gray-100 border-gray-400"}`}
|
className={`cursor-pointer p-2 mr-1 rounded-full text-white border ${config.narrowMode ? "bg-blue-100 border-blue-400" : "bg-gray-100 border-gray-400"}`}
|
||||||
|
|||||||
Reference in New Issue
Block a user