Skip to content

Commit

Permalink
Merge pull request #552 from codeforpdx/cleanup-v10-2
Browse files Browse the repository at this point in the history
Cleaning up v0.10.0 in prep for v0.11.0 upgrade
  • Loading branch information
leekahung authored Nov 30, 2023
2 parents 6eac717 + f583e6e commit 5ec692a
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 23 deletions.
4 changes: 3 additions & 1 deletion src/components/CivicProfileForms/HousingInfo.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// React Imports
import React, { useState, useEffect } from 'react';
// MUI Imports
import { TextField, Button } from '@mui/material';
import Button from '@mui/material/Button';
import TextField from '@mui/material/TextField';
// Custom Hooks Imports
import { useCivicProfile } from '@hooks';

/**
Expand Down
3 changes: 3 additions & 0 deletions src/components/Footer/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Footer from './Footer';

export default Footer;
8 changes: 4 additions & 4 deletions src/constants/HMIS_ONTOLOGY_VALUES.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const prefix = 'urn:hud:hmis:owl#';

const HMIS_ONTOLOGY_VALUES = {
legalFirstName: 'urn:hud:hmis:owl#FirstName',
legalLastName: 'urn:hud:hmis:owl#LastName',
legalDOB: 'urn:hud:hmis:owl#DOB',
legalGender: 'urn:hud:hmis:owl#Gender',
legalFirstName: `${prefix}FirstName`,
legalLastName: `${prefix}LastName`,
legalDOB: `${prefix}DOB`,
legalGender: `${prefix}Gender`,
lastPermanentCity: `${prefix}LastPermanentCity`,
lastPermanentState: `${prefix}LastPermanentState`,
lastPermanentStreet: `${prefix}LastPermanentStreet`,
Expand Down
24 changes: 11 additions & 13 deletions src/hooks/useCivicProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,52 +10,50 @@ import { RDF_PREDICATES } from '@constants';
import useSession from './useSession';
import useRdfCollection from './useRdfCollection';

const prefix = 'urn:hud:hmis:owl#';

const civicProfileConfig = {
firstName: {
type: 'string',
predicate: `${prefix}FirstName`
predicate: RDF_PREDICATES.legalFirstName
},
lastName: {
type: 'string',
predicate: `${prefix}LastName`
predicate: RDF_PREDICATES.legalLastName
},
dateOfBirth: {
type: 'date',
predicate: `${prefix}DOB`
predicate: RDF_PREDICATES.legalDOB
},
gender: {
type: 'number',
predicate: `${prefix}Gender`
predicate: RDF_PREDICATES.legalGender
},
lastPermanentCity: {
type: 'string',
predicate: `${prefix}LastPermanentCity`
predicate: RDF_PREDICATES.lastPermanentCity
},
lastPermanentState: {
type: 'string',
predicate: `${prefix}LastPermanentState`
predicate: RDF_PREDICATES.lastPermanentState
},
lastPermanentStreet: {
type: 'string',
predicate: `${prefix}LastPermanentStreet`
predicate: RDF_PREDICATES.lastPermanentStreet
},
lastPermanentZIP: {
type: 'string',
predicate: `${prefix}LastPermanentZIP`
predicate: RDF_PREDICATES.lastPermanentZIP
},
monthsHomeless: {
type: 'number',
predicate: `${prefix}MonthsHomelessPast3Years`
predicate: RDF_PREDICATES.monthsHomeless
},
timesHomeless: {
type: 'number',
predicate: `${prefix}TimesHomelessPast3Years`
predicate: RDF_PREDICATES.timesHomeless
},
timeToHousingLoss: {
type: 'number',
predicate: `${prefix}TimeToHousingLoss`
predicate: RDF_PREDICATES.timeToHousingLoss
}
};

Expand Down
6 changes: 3 additions & 3 deletions src/layouts/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import Box from '@mui/material/Box';
import useMediaQuery from '@mui/material/useMediaQuery';
import { useTheme } from '@mui/system';
// Component Imports
import { NavBar } from '../components/NavBar';
import { InactivityMessage, NotificationContainer } from '../components/Notification';
import Footer from '../components/Footer/Footer';
import { InactivityMessage, NotificationContainer } from '@components/Notification';
import { NavBar } from '@components/NavBar';
import Footer from '@components/Footer';
import Breadcrumbs from './Breadcrumbs';

const Layout = ({ ariaLabel, children }) => {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Messages.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { useMessageList } from '@hooks';
import Box from '@mui/material/Box';
// Context Imports
// Component Imports
import { NewMessageModal } from '../components/Modals';
import { MessageButtonGroup, MessageFolder } from '../components/Messages';
import { NewMessageModal } from '@components/Modals';
import { MessageButtonGroup, MessageFolder } from '@components/Messages';

/**
* Messages Page - Page that generates the components for the Message system
Expand Down

0 comments on commit 5ec692a

Please sign in to comment.