limiting pilot data for unauthenticated users #68

Merged
noahspannbauer merged 2 commits from feature/62-limit-pilot-data-for-non-auth-users into main 2025-03-18 10:56:25 -04:00
4 changed files with 3 additions and 11 deletions
Showing only changes of commit ddb50e9a9e - Show all commits

View File

@@ -1,6 +1,6 @@
{
"name": "api",
"version": "1.1.0",
"version": "1.2.0",
"description": "",
"author": "",
"private": true,

View File

@@ -1,7 +1,7 @@
{
"name": "app",
"private": true,
"version": "1.1.0",
"version": "1.2.0",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -8,9 +8,7 @@ import {
IconName,
Select,
TextField,
theme,
Typography,
useMediaQuery
} from '@noahspan/noahspan-components';
import { Controller, useFieldArray, useFormContext } from 'react-hook-form';
import { FormMode } from '../../enums/formMode';
@@ -23,7 +21,6 @@ const PilotFormCertificates = ({
control,
formState: { errors },
} = useFormContext();
const isMedium = useMediaQuery(theme.breakpoints.up('md'));
const { fields, append, remove } = useFieldArray({
name: 'certificates',
@@ -138,11 +135,6 @@ const PilotFormCertificates = ({
<Icon iconName={IconName.TRASH} size='sm' />
</IconButton>
</Grid>
<Grid size={12}>
{!isMedium && index + 1 < fields.length &&
<hr style={{ border: '1px solid #cbcbcb' }} />
}
</Grid>
</>
);
})}

View File

@@ -1,6 +1,6 @@
{
"name": "@noahspan/flying",
"version": "1.1.0",
"version": "1.2.0",
"scripts": {
"start": "concurrently 'npm run start:azure -w api' 'wait-on tcp:0.0.0.0:7071 && npm run dev -w app'",
"format": "prettier --write \"**/src/**/*.ts\" \"**/test/**/*.ts\"",