Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Convert apps/meteor/client/views/admin/settings #25565

Merged
merged 1 commit into from
May 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Accordion, Box, Button, ButtonGroup, Skeleton } from '@rocket.chat/fuselage';
import { useTranslation } from '@rocket.chat/ui-contexts';
import React, { useMemo } from 'react';
import React, { ReactElement, useMemo } from 'react';

import Page from '../../../components/Page';
import Section from './Section';

function GroupPageSkeleton() {
function GroupPageSkeleton(): ReactElement {
const t = useTranslation();

return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Button, Icon } from '@rocket.chat/fuselage';
import { useTranslation } from '@rocket.chat/ui-contexts';
import React from 'react';
import React, { ComponentProps, ReactElement } from 'react';

function ResetSettingButton(props) {
function ResetSettingButton(props: ComponentProps<typeof Button>): ReactElement {
const t = useTranslation();

return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Accordion, Box, FieldGroup, Skeleton } from '@rocket.chat/fuselage';
import React from 'react';
import React, { ReactElement } from 'react';

import Setting from './Setting';

function SectionSkeleton() {
function SectionSkeleton(): ReactElement {
return (
<Accordion.Item noncollapsible title={<Skeleton />}>
<Box is='p' color='hint' fontScale='p2'>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Field, Flex, InputBox, Skeleton } from '@rocket.chat/fuselage';
import React from 'react';
import React, { ReactElement } from 'react';

const SettingSkeleton = () => (
const SettingSkeleton = (): ReactElement => (
<Field>
<Flex.Item align='stretch'>
<Field.Label>
Expand Down