[MIRROR] move to native toFixed (#11490)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-08-22 12:41:55 -07:00
committed by GitHub
parent 8dc452cab4
commit c2b1e154db
73 changed files with 166 additions and 233 deletions

View File

@@ -123,9 +123,9 @@ So let's create our first React Component. Create a file with a name
snippet (make sure component name matches the file name):
```jsx
import { useBackend } from '../backend';
import { Button, LabeledList, Section } from '../components';
import { Window } from '../layouts';
import { useBackend } from 'tgui/backend';
import { Button, LabeledList, Section } from 'tgui-core/components';
import { Window } from 'tgui/layouts';
export const SampleInterface = (props, context) => {
const { act, data } = useBackend(context);
@@ -245,9 +245,9 @@ you can do in this situation, is divide and conquer. Grab a chunk of your
JSX code, and wrap it into a second, smaller React component:
```jsx
import { useBackend } from '../backend';
import { Button, LabeledList, Section } from '../components';
import { Window } from '../layouts';
import { useBackend } from 'tgui/backend';
import { Button, LabeledList, Section } from 'tgui-core/components';
import { Window } from 'tgui/layouts';
export const SampleInterface = (props, context) => {
return (
@@ -307,9 +307,9 @@ upon code review):
And the template:
```jsx
import { useBackend } from '../backend';
import { Button, LabeledList, Section } from '../components';
import { Window } from '../layouts';
import { useBackend } from 'tgui/backend';
import { Button, LabeledList, Section } from 'tgui-core/components';
import { Window } from 'tgui/layouts';
export const SampleInterface = (props, context) => {
const { act, data } = useBackend(context);