mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] move to native toFixed (#11490)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8dc452cab4
commit
c2b1e154db
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user