Skip to content

Commit

Permalink
Merge pull request #190 from waldo-vision/ts/fix
Browse files Browse the repository at this point in the history
enable google oauth and rollback commits.
  • Loading branch information
ceriddenn authored Mar 27, 2023
2 parents e7e75f0 + 61d7264 commit 7e2749c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
2 changes: 2 additions & 0 deletions apps/web/components/TurnstileWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const TurnstileWidget = (props: WidgetProps) => {
if (props.refreshState > 0) {
//@ts-ignore
ref.current?.reset();
//@ts-ignore
ref.current?.render();
}
}, [props.refreshState]);
const handleCallback = async (token: string, state: CallbackStates) => {
Expand Down
16 changes: 2 additions & 14 deletions apps/web/pages/auth/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,7 @@ export default function Login() {

const handleSelect = (index: number) => {
if (!authProviders) return;
if (authProviders[index].provider == 'Google') {
const errorMsg =
"Currently Google signin is disabled, we're working on it!";
createErrorToast(errorMsg);
return;
}

setCurrentProvider(authProviders[index].provider.toLowerCase());
if (
userSession?.user?.provider.toLocaleLowerCase() ==
Expand Down Expand Up @@ -234,14 +229,7 @@ export default function Login() {
boxShadow={'lg'}
borderRadius={8}
h={24}
cursor={provider == 'Google' ? 'not-allowed' : ''}
bgColor={
provider == 'Google'
? '#a3a6ab'
: selected
? 'black'
: 'white'
}
bgColor={selected ? 'black' : 'white'}
>
<Flex direction={'row'}>
<Center h={24}>
Expand Down
4 changes: 0 additions & 4 deletions apps/web/pages/submissions/review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@ export default function Review() {
};

useEffect(() => {
if (tsToken && reviewItemData) {
setLoading(false);
return;
}
const getNecessaryData = async () => {
if (tsToken && tsToken.length > 3 && !reviewItemData) {
await refetch();
Expand Down

0 comments on commit 7e2749c

Please sign in to comment.