You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in Title cell components
before I implement my code, it's working fine with this code
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Breadcrumb from '../../../components/Breadcrumb';
but I need to add tag and add href into this so changed this code to
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { useStore } from 'react-redux';
import { useQuery } from '@apollo/client';
import { Button } from '@twigeducation/ts-fe-components';
import Breadcrumb from '../../../components/Breadcrumb';
import { breadcrumbsQuery } from '../../../components/Breadcrumb/Breadcrumbs.query';
can anyone please help me with this, Thanks ..!!
in Title cell components
before I implement my code, it's working fine with this code
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Breadcrumb from '../../../components/Breadcrumb';
const StyledTitle = styled.div
color: #091219; font-size: 1.125rem; font-weight: Bold; width: max-content; max-width: 250px; white-space: pre-line;
;const TypeRow = styled.div
display: flex; justify-content: space-between;
;const TypeHeader = styled.h4
margin-bottom: 0px;
;const TitleCell = ({ type, title, versionId }) => (
{type}
{title}
);
TitleCell.propTypes = {
type: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
versionId: PropTypes.string.isRequired,
};
export default TitleCell;
but I need to add tag and add href into this so changed this code to
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { useStore } from 'react-redux';
import { useQuery } from '@apollo/client';
import { Button } from '@twigeducation/ts-fe-components';
import Breadcrumb from '../../../components/Breadcrumb';
import { breadcrumbsQuery } from '../../../components/Breadcrumb/Breadcrumbs.query';
const StyledTitle = styled.div
color: #091219; font-size: 1.125rem; font-weight: Bold; width: max-content; max-width: 250px; white-space: pre-line;
;const TypeRow = styled.div
display: flex; justify-content: space-between;
;const TypeHeader = styled.h4
margin-bottom: 0px;
;const BreadcrumbLink = styled.a
text-decoration: inherit; color: inherit; cursor: pointer; &:visited{ text-decoration: inherit; color: inherit; cursor: pointer; } &:hover{ text-decoration: inherit; color: inherit; cursor: pointer; }
;const TitleCell = ({ type, title, versionId }) => {
const { subscriptions } = useStore().getState();
const { loading, data, error } = useQuery(breadcrumbsQuery, {
variables: {
applicationId: subscriptions?.product?.tocsApp,
versionId,
},
});
};
TitleCell.propTypes = {
type: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
versionId: PropTypes.string.isRequired,
};
export default TitleCell;
and it gave me errors on both sides ln browser console or in react test part. i just need to add a tag in top.
The text was updated successfully, but these errors were encountered: