这个项目: https://github.com/transitive-bullshit/nextjs-notion-starter-kit 项目预览: https://nextjs-notion-starter-kit.transitivebullsh.it/
网页右上角的 github 图标怎么删除,或者改成其他图标。
1
horizon 2023-03-07 20:02:30 +08:00
|
2
wildnode 2023-03-07 20:04:31 +08:00
components/GitHubShareButton.tsx
这是这个按钮的组件,改其他图标可以在这个组件里改 不想要的话直接在引用这个组件的页面把它删掉就可以 |
5
aceinnes OP @wildnode
前端大佬帮忙看看,删除会显示找不到文件,改动会显示: Failed to compile. ./components/GitHubShareButton.tsx 8:2 Error: Parsing error: Expression expected. info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Error: Command "yarn run build" exited with 1 |