diff --git a/resources/scripts/components/elements/button/Button.tsx b/resources/scripts/components/elements/button/Button.tsx index 55c8ca81b..7b6a08751 100644 --- a/resources/scripts/components/elements/button/Button.tsx +++ b/resources/scripts/components/elements/button/Button.tsx @@ -1,18 +1,24 @@ import React, { forwardRef } from 'react'; import classNames from 'classnames'; +import { ButtonProps, Options } from '@/components/elements/button/types'; import styles from './style.module.css'; -export type ButtonProps = JSX.IntrinsicElements['button'] & { - square?: boolean; - small?: boolean; -} - const Button = forwardRef( - ({ children, square, small, className, ...rest }, ref) => { + ({ children, shape, size, variant, className, ...rest }, ref) => { return ( + {pages.next.map((value) => ( - onPageSelect(value)}> + {value} ))} - onPageSelect(total)}> + diff --git a/resources/scripts/components/server/settings/ReinstallServerBox.tsx b/resources/scripts/components/server/settings/ReinstallServerBox.tsx index d1c8e1327..eb975c876 100644 --- a/resources/scripts/components/server/settings/ReinstallServerBox.tsx +++ b/resources/scripts/components/server/settings/ReinstallServerBox.tsx @@ -6,7 +6,7 @@ import { Actions, useStoreActions } from 'easy-peasy'; import { ApplicationStore } from '@/state'; import { httpErrorToHuman } from '@/api/http'; import tw from 'twin.macro'; -import Button from '@/components/elements/Button'; +import { Button } from '@/components/elements/button/index'; import { Dialog } from '@/components/elements/dialog'; export default () => { @@ -57,14 +57,9 @@ export default () => {

- +
); diff --git a/resources/scripts/components/server/settings/RenameServerBox.tsx b/resources/scripts/components/server/settings/RenameServerBox.tsx index 7e6832c6f..ec4e125bd 100644 --- a/resources/scripts/components/server/settings/RenameServerBox.tsx +++ b/resources/scripts/components/server/settings/RenameServerBox.tsx @@ -9,7 +9,7 @@ import { object, string } from 'yup'; import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; import { ApplicationStore } from '@/state'; import { httpErrorToHuman } from '@/api/http'; -import Button from '@/components/elements/Button'; +import { Button } from '@/components/elements/button/index'; import tw from 'twin.macro'; interface Values { diff --git a/resources/scripts/components/server/settings/SettingsContainer.tsx b/resources/scripts/components/server/settings/SettingsContainer.tsx index 1299203f6..c98593599 100644 --- a/resources/scripts/components/server/settings/SettingsContainer.tsx +++ b/resources/scripts/components/server/settings/SettingsContainer.tsx @@ -9,11 +9,11 @@ import ReinstallServerBox from '@/components/server/settings/ReinstallServerBox' import tw from 'twin.macro'; import Input from '@/components/elements/Input'; import Label from '@/components/elements/Label'; -import { LinkButton } from '@/components/elements/Button'; import ServerContentBlock from '@/components/elements/ServerContentBlock'; import isEqual from 'react-fast-compare'; import CopyOnClick from '@/components/elements/CopyOnClick'; import { formatIp } from '@/helpers'; +import { Button } from '@/components/elements/button/index'; export default () => { const username = useStoreState(state => state.user.data!.username); @@ -58,12 +58,9 @@ export default () => {
- - Launch SFTP - + + Launch SFTP +