Skip to content

Commit

Permalink
fixed issue of my own creation
Browse files Browse the repository at this point in the history
  • Loading branch information
AreYouConfused committed Jan 2, 2025
1 parent 931b605 commit e504936
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/2024/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://frc2713.github.io/QRScout/schema.json",
"$schema": "./../../src/assets/schema.json",
"title": "QRScout",
"page_title": "Crescendo",
"teamNumber": 2713,
Expand Down
3 changes: 1 addition & 2 deletions public/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"properties": {
"background": {
"type": "string",
"pattern": "\\d+\\s+\\d+%\\s+\\d+%"
"pattern": "^(\\d+(?:\\.\\d+)?)(?: (\\d+(?:\\.\\d+)?)%)?(?: (\\d+(?:\\.\\d+)?)%)?$"
},
"foreground": {
"$ref": "#/properties/theme/properties/light/properties/background"
Expand Down Expand Up @@ -568,7 +568,6 @@
"page_title",
"delimiter",
"teamNumber",
"theme",
"sections"
],
"additionalProperties": false,
Expand Down
3 changes: 1 addition & 2 deletions src/assets/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"properties": {
"background": {
"type": "string",
"pattern": "\\d+\\s+\\d+%\\s+\\d+%"
"pattern": "^(\\d+(?:\\.\\d+)?)(?: (\\d+(?:\\.\\d+)?)%)?(?: (\\d+(?:\\.\\d+)?)%)?$"
},
"foreground": {
"$ref": "#/properties/theme/properties/light/properties/background"
Expand Down Expand Up @@ -568,7 +568,6 @@
"page_title",
"delimiter",
"teamNumber",
"theme",
"sections"
],
"additionalProperties": false,
Expand Down
3 changes: 1 addition & 2 deletions src/components/QR/QRModal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Copy, QrCode } from 'lucide-react';
import { QRCodeSVG } from 'qrcode.react';
import { useMemo, useState } from 'react';
import { useState } from 'react';
import { getFieldValue, useQRScoutState, clearSaveData, } from '../../store/store';
import { Button } from '../ui/button';
import {
Expand All @@ -9,7 +9,6 @@ import {
DialogFooter,
DialogTitle,
DialogTrigger,
DialogClose
} from '../ui/dialog';
import { PreviewText } from './PreviewText';
import { useSaveState, saveData } from '../../store/store';
Expand Down

0 comments on commit e504936

Please sign in to comment.