Skip to content

Commit

Permalink
fix: removed awsmobile configuration and aws-exports.js file (#94)
Browse files Browse the repository at this point in the history
* fix: removed awsmobile configuration and aws-exports.js file

* removed awsmobile from search therapists component

* removed awsmobile from manage therapists component
  • Loading branch information
kimharr24 authored Jan 16, 2024
1 parent 469fa1a commit e172021
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 38 deletions.
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 @@ import {
} 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
26 changes: 0 additions & 26 deletions apps/monarch/monarch-frontend/src/aws-exports.js

This file was deleted.

0 comments on commit e172021

Please sign in to comment.