Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: removed awsmobile configuration and aws-exports.js file #94

Merged
merged 3 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions apps/monarch/monarch-frontend/src/app/AdminPage.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
/* eslint-disable no-restricted-globals */
/* eslint-disable @typescript-eslint/ban-ts-comment */
import { Amplify, Auth } from 'aws-amplify';
import { Auth } from 'aws-amplify';
import { withAuthenticator } from '@aws-amplify/ui-react';
import '@aws-amplify/ui-react/styles.css';
//@ts-ignore
import awsmobile from '../aws-exports.js';
import { useEffect, useState } from 'react';
import { Tab, TabList, TabPanel, TabPanels, Tabs } from '@chakra-ui/react';
import { SearchTherapists } from './SearchTherapists.js';
import ManageTherapists from './ManageTherapists';
Amplify.configure(awsmobile);

function AdminPage () {
const [accessToken, setAccessToken] = useState<string>('');
Expand Down
4 changes: 0 additions & 4 deletions apps/monarch/monarch-frontend/src/app/ManageTherapists.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/* eslint-disable no-restricted-globals */
/* eslint-disable @typescript-eslint/ban-ts-comment */
import { Amplify } from 'aws-amplify';
import { withAuthenticator } from '@aws-amplify/ui-react';
import '@aws-amplify/ui-react/styles.css';
//@ts-ignore
import awsmobile from '../aws-exports.js';
import AddPractitioner from './AddPractitioner';
import React, {
useEffect,
Expand All @@ -25,7 +22,6 @@ import {
} from '@chakra-ui/react';
import { controller } from './actionsController';
import { Practitioner } from '@c4c/monarch/common';
Amplify.configure(awsmobile);

const ManageTherapists: React.FC<{ accessToken: string, reload: boolean, setReload: (arg: boolean) => void }> = ({accessToken, reload, setReload}) => {

Expand Down
4 changes: 0 additions & 4 deletions apps/monarch/monarch-frontend/src/app/SearchTherapists.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@
} from '@chakra-ui/icons';
import InfiniteScroll from 'react-infinite-scroll-component';
import SearchTherapistsFilter from './SearchTherapistsFilter';
//@ts-ignore
import awsmobile from '../aws-exports.js';
import { Amplify } from 'aws-amplify';
Amplify.configure(awsmobile);

interface QueryContext {
searchQuery: SearchTherapistsQuery;
Expand Down Expand Up @@ -102,7 +98,7 @@
}

export const SearchTherapists: React.FC<{ accessToken: string, reload?: boolean, setReload?: (arg: boolean) => void }> = ({accessToken, reload, setReload}) => {
const { coords } = useGeolocated();

Check warning on line 101 in apps/monarch/monarch-frontend/src/app/SearchTherapists.tsx

View workflow job for this annotation

GitHub Actions / pre-deploy

'coords' is assigned a value but never used
const [distanceFilterEnabled, setDistanceFilterEnabled] = useState(false);
const [clientCoordinates, setClientCoordinates] = useState<GeolocationPosition>();
const [searchQuery, setSearchQuery] = useState<SearchTherapistsQuery>({
Expand Down Expand Up @@ -185,12 +181,12 @@
display: 'flex'
};

const regularStyles = {

Check warning on line 184 in apps/monarch/monarch-frontend/src/app/SearchTherapists.tsx

View workflow job for this annotation

GitHub Actions / pre-deploy

'regularStyles' is assigned a value but never used
paddingTop: '20px',
paddingRight: '30px'
}

const adminStyles = {

Check warning on line 189 in apps/monarch/monarch-frontend/src/app/SearchTherapists.tsx

View workflow job for this annotation

GitHub Actions / pre-deploy

'adminStyles' is assigned a value but never used
paddingRight: '30px'
}

Expand Down
26 changes: 0 additions & 26 deletions apps/monarch/monarch-frontend/src/aws-exports.js

This file was deleted.

Loading