-
-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Move auto-approval config page into Settings
- Loading branch information
Showing
7 changed files
with
26 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import SettingsLayout from '@app/components/Settings/SettingsLayout'; | ||
import SettingsAutoApproval from '@app/components/Settings/SettingsAutoApproval'; | ||
import useRouteGuard from '@app/hooks/useRouteGuard'; | ||
import {Permission} from '@app/hooks/useUser'; | ||
import type { NextPage } from 'next'; | ||
|
||
const SettingsAutoApprovalPage: NextPage = () => { | ||
useRouteGuard(Permission.ADMIN); | ||
return ( | ||
<SettingsLayout> | ||
<SettingsAutoApproval /> | ||
</SettingsLayout> | ||
) | ||
} | ||
|
||
export default SettingsAutoApprovalPage; |