Skip to content

Commit

Permalink
fix: correct username for view resume
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdavis committed Jan 23, 2025
1 parent 65cf0b3 commit b19902a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions apps/registry/app/components/ResumeEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Button } from '@repo/ui';
import Link from 'next/link';
import schema from './schema';
import { ExternalLink, Save } from 'lucide-react';
import { useResume } from '../providers/ResumeProvider';

const HtmlIframe = ({ htmlString }) => {
const iframeRef = useRef(null);
Expand All @@ -21,11 +22,8 @@ const HtmlIframe = ({ htmlString }) => {
return <iframe ref={iframeRef} className="w-full h-full overflow-auto" />;
};

export default function ResumeEditor({
login,
resume: initialResume,
updateGist,
}) {
export default function ResumeEditor({ resume: initialResume, updateGist }) {
const { username } = useResume();
const [resume, setResume] = useState(initialResume);
const [changed, setChanged] = useState(false);
const [content, setContent] = useState('');
Expand Down Expand Up @@ -70,7 +68,7 @@ export default function ResumeEditor({
<div className="flex items-center gap-2">
<Button variant="outline" size="sm" asChild>
<Link
href={`/${login}`}
href={`/${username}`}
target="_blank"
className="flex items-center gap-1"
>
Expand Down

0 comments on commit b19902a

Please sign in to comment.