Skip to content

Commit

Permalink
chore: repo overall update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Nov 27, 2024
1 parent 9724203 commit 16eade0
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions packages/canyon-platform/app/projects/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,19 +252,19 @@ const ProjectOverviewPage = () => {
/>
<Space>
<span type={"secondary"}>{"only.default.branch"}: </span>
<Switch
defaultChecked={Boolean(
localStorage.getItem("defaultBranchOnly"),
)}
onChange={(v) => {
if (v) {
localStorage.setItem("defaultBranchOnly", "1");
} else {
localStorage.removeItem("defaultBranchOnly");
}
// setDefaultBranchOnly(v);
}}
/>
{/*<Switch*/}
{/* defaultChecked={Boolean(*/}
{/* localStorage.getItem("defaultBranchOnly"),*/}
{/* )}*/}
{/* onChange={(v) => {*/}
{/* if (v) {*/}
{/* localStorage.setItem("defaultBranchOnly", "1");*/}
{/* } else {*/}
{/* localStorage.removeItem("defaultBranchOnly");*/}
{/* }*/}
{/* // setDefaultBranchOnly(v);*/}
{/* }}*/}
{/*/>*/}
</Space>
</div>
</div>
Expand Down

0 comments on commit 16eade0

Please sign in to comment.