ui: make PowerControls buttons uppercase
This commit is contained in:
parent
1ead83383d
commit
38ff35873e
2 changed files with 4 additions and 2 deletions
|
@ -21,7 +21,7 @@ const PowerControls = () => {
|
|||
size={'xsmall'}
|
||||
color={'green'}
|
||||
isSecondary
|
||||
css={tw`mr-2`}
|
||||
css={tw`uppercase mr-2`}
|
||||
disabled={status !== 'offline'}
|
||||
onClick={e => {
|
||||
e.preventDefault();
|
||||
|
@ -35,7 +35,7 @@ const PowerControls = () => {
|
|||
<Button
|
||||
size={'xsmall'}
|
||||
isSecondary
|
||||
css={tw`mr-2`}
|
||||
css={tw`uppercase mr-2`}
|
||||
disabled={!status}
|
||||
onClick={e => {
|
||||
e.preventDefault();
|
||||
|
|
|
@ -3,6 +3,7 @@ import { ServerContext } from '@/state/server';
|
|||
import { PowerAction } from '@/components/server/ServerConsole';
|
||||
import Button from '@/components/elements/Button';
|
||||
import isEqual from 'react-fast-compare';
|
||||
import tw from 'twin.macro';
|
||||
|
||||
const StopOrKillButton = ({ onPress }: { onPress: (action: PowerAction) => void }) => {
|
||||
const [ clicked, setClicked ] = useState(false);
|
||||
|
@ -16,6 +17,7 @@ const StopOrKillButton = ({ onPress }: { onPress: (action: PowerAction) => void
|
|||
<Button
|
||||
color={'red'}
|
||||
size={'xsmall'}
|
||||
css={tw`uppercase`}
|
||||
disabled={!status || status === 'offline'}
|
||||
onClick={e => {
|
||||
e.preventDefault();
|
||||
|
|
Loading…
Reference in a new issue