Skip to content

Commit

Permalink
Added a story text to the OBS editor (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
mugishayannick authored Sep 22, 2023
1 parent 92f6700 commit fda3231
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion renderer/src/components/EditorPage/ObsEditor/NavigationObs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import {
import {
XMarkIcon,
ChevronDownIcon,
ChevronLeftIcon,
ChevronRightIcon,
} from '@heroicons/react/24/solid';

import styles from '../Navigation/reference/SelectReference.module.css';
Expand Down Expand Up @@ -65,7 +67,19 @@ export default function NavigationObs({ onChangeNumber, number }) {
<>
<div className="flex">
<div className="bg-primary text-white py-2 uppercase tracking-wider text-xs font-semibold">
<span className="px-3">{number}</span>
<span
className="focus:outline-none bg-white py-4 bg-opacity-10"
onClick={selectBook}
role="button"
tabIndex="-1"
aria-label="obs-navigation"
>
<ChevronLeftIcon className="focus:outline-none inline h-4 w-4 mx-1 text-white" aria-hidden="true" />
</span>
<span className="px-3">
Story
{number}
</span>
<span
className="focus:outline-none bg-white py-4 bg-opacity-10"
onClick={selectBook}
Expand All @@ -75,6 +89,15 @@ export default function NavigationObs({ onChangeNumber, number }) {
>
<ChevronDownIcon className="focus:outline-none inline h-4 w-4 mx-1 text-white" aria-hidden="true" />
</span>
<span
className="focus:outline-none bg-white py-4 bg-opacity-10"
onClick={selectBook}
role="button"
tabIndex="-1"
aria-label="obs-navigation"
>
<ChevronRightIcon className="focus:outline-none inline h-4 w-4 mx-1 text-white" aria-hidden="true" />
</span>
</div>
</div>

Expand Down

0 comments on commit fda3231

Please sign in to comment.