Skip to content

Commit

Permalink
Fixes Niftsoft Settings Panel (#208)
Browse files Browse the repository at this point in the history
Fixes Niftsoft Settings
  • Loading branch information
SomeRandomOwl authored and Iajret committed Jan 3, 2024
1 parent 766fd1a commit b834c20
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tgui/packages/tgui/interfaces/NifPanel.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// THIS IS A NOVA SECTOR UI FILE
import { useBackend, useLocalState } from '../backend';
import { useBackend } from '../backend';
import {
BlockQuote,
Box,
Expand All @@ -16,6 +16,7 @@ import {
} from '../components';
import { TableCell, TableRow } from '../components/Table';
import { Window } from '../layouts';
import { useState } from 'react';

export const NifPanel = (props) => {
const { act, data } = useBackend();
Expand All @@ -26,7 +27,7 @@ export const NifPanel = (props) => {
max_power,
current_theme,
} = data;
const [settingsOpen, setSettingsOpen] = useLocalState('settingsOpen', false);
const [settingsOpen, setSettingsOpen] = useState(0);

return (
<Window
Expand Down Expand Up @@ -258,7 +259,7 @@ const NifSettings = (props) => {
};

const NifProductNotes = (props) => {
const { act, data } = useBackend(t);
const { act, data } = useBackend();
const { product_notes } = data;
return <BlockQuote>{product_notes}</BlockQuote>;
};
Expand Down

0 comments on commit b834c20

Please sign in to comment.