Skip to content

Commit

Permalink
hide more options for public notes
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshj01 committed Sep 5, 2024
1 parent 284bab9 commit 432354e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/(main)/_components/SideBarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const SidebarItem: React.FC<SidebarItemProps> = ({ selected, id, log, onLogClick
const [logTitle, setLogTitle] = useState<string>(log.title || log.id || '');
const router = useRouter();
const publicLogs = ['getting-started', 'shortcuts'];
const showMoreOptions = !publicLogs.includes(log.title!);
function MoreOptions() {
const showMoreOptions = !publicLogs.includes(log.id!);
function MoreOptions() {
const options = ['Share', 'Delete', 'Republish', 'Rename'];
return (<PSDropdown
options={options}
Expand Down

0 comments on commit 432354e

Please sign in to comment.