Skip to content

Commit c57861d

Browse files
committed
Fix Palette Typo Everywhere
1 parent 83af9d4 commit c57861d

File tree

7 files changed

+25
-25
lines changed

7 files changed

+25
-25
lines changed

src/components/window/AppBar/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { isDesktop } from "@utils/desktopTools";
44

55
import { WindowActions } from "@components/window/WindowActions";
66
import { ToolBar } from "@components/window/ToolBar";
7-
import { Pallete } from "@components/window/Pallete";
7+
import { Palette } from "@components/window/Palette";
88

99
import "./style.css";
1010

@@ -33,7 +33,7 @@ export function AppBar({
3333

3434
<ToolBar tools={tools} />
3535

36-
<Pallete generateSuggestions={generateSuggestions} />
36+
<Palette generateSuggestions={generateSuggestions} />
3737

3838
<div className="root-app-extra-title">
3939
<span>

src/components/window/Pallete/index.tsx renamed to src/components/window/Palette/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { DynamicIcon } from "@components/commons/DynamicIcon";
77

88
import "./style.css";
99

10-
export function Pallete({
10+
export function Palette({
1111
generateSuggestions,
1212
}: {
1313
generateSuggestions: (query: string) => Suggestion[];
@@ -28,7 +28,7 @@ export function Pallete({
2828
>
2929
<Input
3030
value={query}
31-
placeholder="App Pallete"
31+
placeholder="App Palette"
3232
onChange={(e) => setQuery(e.target.value)}
3333
/>
3434

src/utils/appData.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { useNodeFactoryContext } from "@utils/nodeFactory";
1313
import { useNodeSystemContext } from "@utils/nodeSystem";
1414
import { useNodeHistoryContext } from "@utils/nodeHistory";
1515
import { usePromptContext } from "@utils/prompt";
16-
import { usePalleteContext } from "@utils/pallete";
16+
import { usePaletteContext } from "@utils/palette";
1717
import { useVariablesContext } from "@utils/variables";
1818
import { loadProject, saveProject } from "@utils/engineTools";
1919
import { packProject } from "@utils/packerTools";
@@ -24,7 +24,7 @@ import {
2424
getBreadcrumb,
2525
getWindowTools,
2626
loadExistingId,
27-
updatePalleteRegistry,
27+
updatePaletteRegistry,
2828
} from "@utils/projectTools";
2929

3030
const createAppDataContext = () => {
@@ -69,7 +69,7 @@ const createAppDataContext = () => {
6969
const {
7070
addSuggestion,
7171
generateSuggestions,
72-
} = usePalleteContext()!;
72+
} = usePaletteContext()!;
7373

7474
const {
7575
newNode,
@@ -193,7 +193,7 @@ const createAppDataContext = () => {
193193
]);
194194

195195
useEffect(() => {
196-
updatePalleteRegistry(
196+
updatePaletteRegistry(
197197
addSuggestion,
198198
openNode,
199199
entries,

src/utils/pallete.tsx renamed to src/utils/palette.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import {
88

99
import type { Suggestion } from "@defs/UI";
1010

11-
function createPalleteContext() {
12-
const PalleteContext = createContext<{
11+
function createPaletteContext() {
12+
const PaletteContext = createContext<{
1313
addSuggestion: (suggestion: Suggestion, group: string) => void;
1414
generateSuggestions: (query: string) => Suggestion[];
1515
} | undefined>(undefined);
1616

17-
const PalleteProvider = ({ children }: {
17+
const PaletteProvider = ({ children }: {
1818
children: ReactNode;
1919
}) => {
2020
const [ keys, setKeys ] = useState<{
@@ -88,24 +88,24 @@ function createPalleteContext() {
8888
};
8989

9090
return (<>
91-
<PalleteContext.Provider value={exposed}>
91+
<PaletteContext.Provider value={exposed}>
9292
{children}
93-
</PalleteContext.Provider>
93+
</PaletteContext.Provider>
9494
</>);
9595
}
9696

97-
const usePalleteContext = () => {
98-
return useContext(PalleteContext);
97+
const usePaletteContext = () => {
98+
return useContext(PaletteContext);
9999
}
100100

101101
return {
102-
PalleteProvider,
103-
usePalleteContext
102+
PaletteProvider,
103+
usePaletteContext
104104
}
105105
}
106106

107107
export const {
108-
PalleteProvider,
109-
usePalleteContext
110-
} = createPalleteContext();
108+
PaletteProvider,
109+
usePaletteContext
110+
} = createPaletteContext();
111111

src/utils/projectTools.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const setupProjectTools = () => {
9595
];
9696
};
9797

98-
const updatePalleteRegistry = (
98+
const updatePaletteRegistry = (
9999
addSuggestion: (suggestion: Suggestion, group: string) => void,
100100
openNode: (nodeId: string, topLevel?: boolean) => void,
101101
entries: string[],
@@ -171,14 +171,14 @@ const setupProjectTools = () => {
171171
getWindowTools,
172172
getBreadcrumb,
173173
loadExistingId,
174-
updatePalleteRegistry,
174+
updatePaletteRegistry,
175175
};
176176
}
177177

178178
export const {
179179
getWindowTools,
180180
getBreadcrumb,
181181
loadExistingId,
182-
updatePalleteRegistry,
182+
updatePaletteRegistry,
183183
} = setupProjectTools();
184184

src/utils/rootProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { JSX, ReactNode } from "react";
22

33
import { PromptProvider } from "@utils/prompt";
4-
import { PalleteProvider } from "@utils/pallete";
4+
import { PaletteProvider } from "@utils/palette";
55
import { VariablesProvider } from "@utils/variables";
66
import { NodeSystemProvider } from "@utils/nodeSystem";
77
import { NodeHistoryProvider } from "@utils/nodeHistory";
@@ -19,7 +19,7 @@ export function RootProvider({ children }: {
1919
const providers: ProviderType[] = [
2020
UnsavedChangesProvider,
2121
PromptProvider,
22-
PalleteProvider,
22+
PaletteProvider,
2323
VariablesProvider,
2424
NodeSystemProvider,
2525
NodeHistoryProvider,

0 commit comments

Comments
 (0)