Feature/62 limit pilot data for non auth users #69

Merged
noahspannbauer merged 3 commits from feature/62-limit-pilot-data-for-non-auth-users into main 2025-03-18 11:08:50 -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", "name": "api",
"version": "1.1.0", "version": "1.2.0",
"description": "", "description": "",
"author": "", "author": "",
"private": true, "private": true,

View File

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

View File

@@ -8,9 +8,7 @@ import {
IconName, IconName,
Select, Select,
TextField, TextField,
theme,
Typography, Typography,
useMediaQuery
} from '@noahspan/noahspan-components'; } from '@noahspan/noahspan-components';
import { Controller, useFieldArray, useFormContext } from 'react-hook-form'; import { Controller, useFieldArray, useFormContext } from 'react-hook-form';
import { FormMode } from '../../enums/formMode'; import { FormMode } from '../../enums/formMode';
@@ -23,7 +21,6 @@ const PilotFormCertificates = ({
control, control,
formState: { errors }, formState: { errors },
} = useFormContext(); } = useFormContext();
const isMedium = useMediaQuery(theme.breakpoints.up('md'));
const { fields, append, remove } = useFieldArray({ const { fields, append, remove } = useFieldArray({
name: 'certificates', name: 'certificates',
@@ -138,11 +135,6 @@ const PilotFormCertificates = ({
<Icon iconName={IconName.TRASH} size='sm' /> <Icon iconName={IconName.TRASH} size='sm' />
</IconButton> </IconButton>
</Grid> </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", "name": "@noahspan/flying",
"version": "1.1.0", "version": "1.2.0",
"scripts": { "scripts": {
"start": "concurrently 'npm run start:azure -w api' 'wait-on tcp:0.0.0.0:7071 && npm run dev -w app'", "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\"", "format": "prettier --write \"**/src/**/*.ts\" \"**/test/**/*.ts\"",