Skip to content

Commit

Permalink
Merge pull request #10 from ChangePlusPlusVandy/APP-14
Browse files Browse the repository at this point in the history
APP 14 Select flights and airports
  • Loading branch information
jacoblurie29 authored Jan 9, 2024
2 parents d8c7952 + 7b7c2ff commit b6c6e79
Show file tree
Hide file tree
Showing 12 changed files with 652 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main

jobs:
backend-tests:
frontend-tests:
runs-on: ubuntu-latest

strategy:
Expand Down
149 changes: 137 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"dotenv": "^16.3.1",
"moon-loader": "^0.1.0",
"react": "^18.2.0",
"react-calendar": "^4.8.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.48.2",
"react-router-dom": "^6.18.0",
Expand Down
19 changes: 19 additions & 0 deletions src/components/CustomIcon/Icon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import type { FC } from "react";

interface IconProps {
glyph: string;
regular?: boolean;
size?: string;
}

const Icon: FC<IconProps> = ({ glyph, regular = false, size = "" }) => {
const iconClass = `fa${regular ? "r" : "s"} fa-${glyph}`;

return (
<i
className={`Icon ${iconClass} Text-fontSize--${size !== "" ? size : ""}`}
/>
);
};

export default Icon;
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export type DateValue = Date | null | [Date, Date];

export interface FormTypes {
departDate: DateValue;
arrivalDate: DateValue;
oneWay: boolean;
departureAirportPrimary: string;
departureAirportAlternate: string;
arrivalAirportPrimary: string;
arrivalAirportAlternate: string;
}
Loading

0 comments on commit b6c6e79

Please sign in to comment.