Skip to content

Commit

Permalink
chore: update TS & fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Nov 21, 2023
1 parent 8981431 commit 85e892a
Show file tree
Hide file tree
Showing 11 changed files with 242 additions and 293 deletions.
8 changes: 4 additions & 4 deletions apps/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"@react-aria/label": "^3.7.3",
"@react-aria/ssr": "^3.9.0",
"@react-types/shared": "^3.22.0",
"@sentry/browser": "^7.81.0",
"@sentry/nextjs": "^7.81.0",
"@sentry/tracing": "^7.81.0",
"@sentry/browser": "^7.81.1",
"@sentry/nextjs": "^7.81.1",
"@sentry/tracing": "^7.81.1",
"@snailycad/audit-logger": "workspace:*",
"@snailycad/config": "^1.78.0",
"@snailycad/permissions": "workspace:*",
Expand Down Expand Up @@ -102,7 +102,7 @@
"sass": "^1.69.5",
"tailwindcss": "^3.3.5",
"typescript": "^5.3.2",
"vite": "^5.0.0",
"vite": "^5.0.2",
"vitest": "^0.34.6"
}
}
2 changes: 1 addition & 1 deletion packages/audit-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"devDependencies": {
"tsup": "6.6.2",
"typescript": "^5.2.2",
"typescript": "^5.3.2",
"vite": "^5.0.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"devDependencies": {
"tsup": "6.6.2",
"typescript": "^5.2.2",
"typescript": "^5.3.2",
"vite": "^5.0.0",
"vitest": "^0.34.6"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/permissions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"devDependencies": {
"tsup": "6.6.2",
"typescript": "^5.2.2",
"typescript": "^5.3.2",
"vite": "^5.0.0",
"vitest": "^0.34.6"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/schemas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"devDependencies": {
"tsup": "6.6.2",
"typescript": "^5.2.2"
"typescript": "^5.3.2"
},
"dependencies": {
"@snailycad/types": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"devDependencies": {
"tsup": "6.6.2",
"typescript": "^5.2.2"
"typescript": "^5.3.2"
},
"tsup": {
"entry": [
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from "react";
import "../src/tailwind.css";
import type { Preview } from "@storybook/react";
import { withThemeByDataAttribute } from "@storybook/addon-themes";
import { NextIntlProvider } from "next-intl";
import { NextIntlClientProvider } from "next-intl";

const preview: Preview = {
parameters: {
Expand Down Expand Up @@ -56,9 +56,9 @@ export const decorators = [
attributeName: "data-theme",
}),
(Story) => (
<NextIntlProvider messages={MESSAGES_REQUIRED_IN_COMPONENTS} locale="en">
<NextIntlClientProvider messages={MESSAGES_REQUIRED_IN_COMPONENTS} locale="en">
<Story />
</NextIntlProvider>
</NextIntlClientProvider>
),
];

Expand Down
12 changes: 7 additions & 5 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@storybook/jest": "^0.2.3",
"@storybook/react": "^7.5.3",
"@storybook/react-vite": "^7.5.3",
"@storybook/test-runner": "^0.15.1",
"@storybook/test-runner": "^0.15.2",
"@storybook/testing-library": "^0.2.2",
"autoprefixer": "^10.4.16",
"monaco-editor": "^0.44.0",
Expand All @@ -37,8 +37,8 @@
"storybook": "^7.5.3",
"tailwindcss": "^3.3.5",
"tsup": "6.6.2",
"typescript": "^5.2.2",
"vite": "^5.0.0"
"typescript": "^5.3.2",
"vite": "^5.0.2"
},
"tsup": {
"entry": [
Expand All @@ -59,6 +59,8 @@
]
},
"dependencies": {
"next-intl": "^3.1.2",
"use-intl": "^3.1.2",
"@casperiv/useful": "^3.0.0",
"@internationalized/date": "^3.5.0",
"@monaco-editor/react": "^4.6.0",
Expand Down Expand Up @@ -121,10 +123,10 @@
"peerDependencies": {
"date-fns": ">=2.30.0",
"next": "*",
"next-intl": ">=3.1.0",
"next-intl": ">=3.1.2",
"react": ">=18.2.0",
"react-dom": ">=18.2.0",
"use-intl": ">=3.1.0"
"use-intl": ">=3.1.2"
},
"sideEffects": false
}
7 changes: 3 additions & 4 deletions packages/ui/src/components/status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@ enum Colors {
}

export const colors = {
[WhitelistStatus.ACCEPTED]: Colors.GREEN,
[ExpungementRequestStatus.ACCEPTED]: Colors.GREEN,
ACCEPTED: Colors.GREEN,
PENDING: Colors.ORANGE,

[LicenseExamStatus.PASSED]: Colors.GREEN,
[PaymentStatus.PAID]: Colors.GREEN,
[ConnectionStatus.CONNECTED]: Colors.GREEN,
[WhitelistStatus.PENDING]: Colors.ORANGE,
[ExpungementRequestStatus.PENDING]: Colors.ORANGE,
[LicenseExamStatus.IN_PROGRESS]: Colors.ORANGE,
[ConnectionStatus.CONNECTING]: Colors.ORANGE,
[WhitelistStatus.DECLINED]: Colors.RED,
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"@types/node": "^20.9.1",
"c8": "^8.0.1",
"tsup": "6.6.2",
"typescript": "^5.2.2",
"typescript": "^5.3.2",
"vite": "^5.0.0",
"vitest": "^0.34.6"
},
Expand Down
Loading

0 comments on commit 85e892a

Please sign in to comment.