Redesign settings profile (#353)

* Redesign settings profile

* Fix spacing

* Fix Company creation
This commit is contained in:
Charles Bochet
2023-06-21 23:50:24 -07:00
committed by GitHub
parent 3c1851b3c9
commit eb9be6894e
14 changed files with 74 additions and 25 deletions

View File

@ -1,4 +1,5 @@
import { useCallback, useState } from 'react';
import { getOperationName } from '@apollo/client/utilities';
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { v4 as uuidv4 } from 'uuid';
@ -6,6 +7,7 @@ import { v4 as uuidv4 } from 'uuid';
import {
CompaniesSelectedSortType,
defaultOrderBy,
GET_COMPANIES,
useCompaniesQuery,
} from '@/companies/services';
import {
@ -67,7 +69,10 @@ export function Companies() {
createdAt: new Date().toISOString(),
};
await insertCompany({ variables: newCompany });
await insertCompany({
variables: newCompany,
refetchQueries: [getOperationName(GET_COMPANIES) ?? ''],
});
}
const companiesColumns = useCompaniesColumns();